Skip to content

Commit 1ba2985

Browse files
committed
Fix warning about unnecessary parens in generated code
1 parent 604c036 commit 1ba2985

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/backend/src/codegen.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,9 @@ impl TryToTokens for ast::ImportFunction {
977977
}
978978
#[cfg(not(all(target_arch = "wasm32", not(target_os = "emscripten"))))]
979979
unsafe fn #import_name(#(#abi_arguments),*) -> #abi_ret {
980-
drop((#(#abi_argument_names),*));
980+
#(
981+
drop(#abi_argument_names);
982+
)*
981983
panic!("cannot call wasm-bindgen imported functions on \
982984
non-wasm targets");
983985
}

0 commit comments

Comments
 (0)