Fix warning about unnecessary parens in generated code

This commit is contained in:
Nick Fitzgerald 2019-07-09 13:17:34 -07:00
parent 604c036111
commit 1ba298548f

View File

@ -977,7 +977,9 @@ impl TryToTokens for ast::ImportFunction {
}
#[cfg(not(all(target_arch = "wasm32", not(target_os = "emscripten"))))]
unsafe fn #import_name(#(#abi_arguments),*) -> #abi_ret {
drop((#(#abi_argument_names),*));
#(
drop(#abi_argument_names);
)*
panic!("cannot call wasm-bindgen imported functions on \
non-wasm targets");
}