Skip to content

Commit

Permalink
Get rid of needless mut
Browse files Browse the repository at this point in the history
For some reason I was getting errors before without it, but that seems
to be fixed now. (It's probably something to do with having removed the
`borrow_mut`, but that only takes `&self`, so I still don't get it.)
  • Loading branch information
Liamolucko committed Apr 28, 2024
1 parent 45c4444 commit c72cbde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/backend/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ impl ToTokens for ast::Struct {

let ptr = js as *mut WasmRefCell<#name>;
assert_not_null(ptr);
let mut rc = Rc::from_raw(ptr);
let rc = Rc::from_raw(ptr);
match Rc::into_inner(rc) {
Some(cell) => cell.into_inner(),
None => #wasm_bindgen::throw_str(
Expand Down

0 comments on commit c72cbde

Please sign in to comment.