Re-export wasm-bindgen

This commit is contained in:
Rob Watson 2020-11-12 10:00:28 +01:00
parent dcd02f5702
commit 348b03d4ea
2 changed files with 4 additions and 1 deletions

View File

@ -83,5 +83,8 @@ pub use weblog_proc_macro::*;
#[cfg(feature = "web_sys")]
pub use ::web_sys;
#[cfg(feature = "web_sys")]
pub use ::wasm_bindgen;
#[cfg(feature = "std_web")]
pub use self::console::std_web::*;

View File

@ -69,7 +69,7 @@ fn quote_arg(arg: &Expr, arg_mode: ArgMode) -> TokenStream2 {
quote! { #arg }
}
ArgMode::IntoJsValue => {
quote! { &::std::convert::Into::<::wasm_bindgen::JsValue>::into(#arg) }
quote! { &::std::convert::Into::<::weblog::wasm_bindgen::JsValue>::into(#arg) }
}
}
}