File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -3612,22 +3612,21 @@ impl CodeGenerator for Function {
3612
3612
}
3613
3613
3614
3614
// Unfortunately this can't piggyback on the `attributes` list because
3615
- // the #[link(wasm_import_module)] needs to happen before the `extern "C"` block.
3616
- // it doesn't get picked up properly otherwise
3615
+ // the #[link(wasm_import_module)] needs to happen before the `extern
3616
+ // "C"` block. It doesn't get picked up properly otherwise
3617
3617
let wasm_link_attribute =
3618
3618
ctx. options ( ) . wasm_import_module_name . as_ref ( ) . map ( |name| {
3619
- quote ! {
3620
- #[ link( wasm_import_module = #name) ]
3621
- }
3619
+ quote ! { #[ link( wasm_import_module = #name) ] }
3622
3620
} ) ;
3623
3621
3624
3622
let ident = ctx. rust_ident ( canonical_name) ;
3625
- let tokens = quote ! (
3623
+ let tokens = quote ! {
3626
3624
#wasm_link_attribute
3627
3625
extern #abi {
3628
3626
#( #attributes) *
3629
3627
pub fn #ident ( #( #args ) , * ) #ret;
3630
- } ) ;
3628
+ }
3629
+ } ;
3631
3630
result. push ( tokens) ;
3632
3631
}
3633
3632
}
You can’t perform that action at this time.
0 commit comments