mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-19 07:51:26 +00:00
Allow reexporting proc macro output in the 2018 edition
Trying to use a proc macro from a 2018 edition crate in a 2018 edition crate that reexports wasm bindgen's output failed before this commit with "could not find `wasm_bindgen` in `{{root}}`". This commit was made with rg " ::wasm_bindgen::" --files-with-matches | xargs sed -i 's/::wasm_bindgen::/wasm_bindgen::/g'
This commit is contained in:
@ -149,7 +149,7 @@ fn unit_ty() -> syn::Type {
|
||||
})
|
||||
}
|
||||
|
||||
/// From `T` create `Result<T, ::wasm_bindgen::JsValue>`.
|
||||
/// From `T` create `Result<T, wasm_bindgen::JsValue>`.
|
||||
fn result_ty(t: syn::Type) -> syn::Type {
|
||||
let js_value = leading_colon_path_ty(vec![rust_ident("wasm_bindgen"), rust_ident("JsValue")]);
|
||||
|
||||
|
Reference in New Issue
Block a user