Skip to content

Commit 12d6449

Browse files
committed
Fully-qualified names in quote
1 parent 1b6dbbf commit 12d6449

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/backend/src/codegen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,15 @@ impl TryToTokens for ast::LinkToModule {
136136
self.0.try_to_tokens(&mut program)?;
137137
let link_function_name = self.0.link_function_name(0);
138138
let name = Ident::new(&link_function_name, Span::call_site());
139-
let abi_ret = quote! { <String as wasm_bindgen::convert::FromWasmAbi>::Abi };
139+
let abi_ret = quote! { <std::string::String as wasm_bindgen::convert::FromWasmAbi>::Abi };
140140
let extern_fn = extern_fn(&name, &[], &[], &[], abi_ret);
141141
(quote! {
142142
{
143143
#program
144144
#extern_fn
145145

146146
unsafe {
147-
<String as wasm_bindgen::convert::FromWasmAbi>::from_abi(#name())
147+
<std::string::String as wasm_bindgen::convert::FromWasmAbi>::from_abi(#name())
148148
}
149149
}
150150
})

0 commit comments

Comments
 (0)