diff --git a/stdweb-internal-macros/src/js_shim.rs b/stdweb-internal-macros/src/js_shim.rs index 263ed4ad..486fb050 100644 --- a/stdweb-internal-macros/src/js_shim.rs +++ b/stdweb-internal-macros/src/js_shim.rs @@ -115,7 +115,7 @@ pub fn js_shim_extern_code( target: Target, code: &str, arg_count: usize, return let shim_name = &shim_name; let shim_args = &shim_args; quote! { - use ::stdweb::private::wasm_bindgen::prelude::*; + use ::stdweb::private::wasm_bindgen::{self, prelude::*}; unsafe fn #shim_name( #(#shim_args),* ) #return_signature { #[wasm_bindgen(inline_js = #code_string)] extern "C" {