From ccc453c653bbcc4a20e7a1dd3ce884b626d5e7e7 Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Tue, 13 Oct 2020 20:39:05 -0500 Subject: [PATCH] Import wasm_bindgen in macros --- stdweb-internal-macros/src/js_shim.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" {