File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -616,7 +616,7 @@ impl ToTokens for ast::ImportEnum {
616
616
}
617
617
618
618
impl #name {
619
- #vis fn from_js_value( obj: :: wasm_bindgen:: JsValue ) -> Option <#name> {
619
+ #vis fn from_js_value( obj: & :: wasm_bindgen:: JsValue ) -> Option <#name> {
620
620
obj. as_string( ) . and_then( |obj_str| match obj_str. as_str( ) {
621
621
#( #variant_strings => Some ( #variant_paths_ref) , ) *
622
622
_ => None ,
@@ -647,7 +647,7 @@ impl ToTokens for ast::ImportEnum {
647
647
js: Self :: Abi ,
648
648
extra: & mut :: wasm_bindgen:: convert:: Stack ,
649
649
) -> Self {
650
- #name:: from_js_value( :: wasm_bindgen:: JsValue :: from_abi( js, extra) ) . expect( #expect_string)
650
+ #name:: from_js_value( & :: wasm_bindgen:: JsValue :: from_abi( js, extra) ) . expect( #expect_string)
651
651
}
652
652
}
653
653
You can’t perform that action at this time.
0 commit comments