mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-13 13:01:22 +00:00
Fix exporting structs with BorrowMut
in scope
Apparently the codegen wasn't precise enough such that a trait import could cause method resolution to go awry! Closes #919
This commit is contained in:
@ -165,7 +165,7 @@ impl ToTokens for ast::Struct {
|
||||
let ptr = js as *mut WasmRefCell<#name>;
|
||||
assert_not_null(ptr);
|
||||
let js = Box::from_raw(ptr);
|
||||
js.borrow_mut(); // make sure no one's borrowing
|
||||
(*js).borrow_mut(); // make sure no one's borrowing
|
||||
js.into_inner()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user