Skip to content

Commit

Permalink
don't need the dynamic borrow check here
Browse files Browse the repository at this point in the history
  • Loading branch information
kyren committed Nov 29, 2022
1 parent b49ab38 commit f1e417a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gc-arena/src/dynamic_arena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl<'gc> DynamicRootSet<'gc> {
) -> DynamicRoot<R> {
let rc = Rc::new(());

self.handles.borrow_mut().push(Handle {
self.handles.get_mut().push(Handle {
ptr: root.ptr,
rc: Rc::downgrade(&rc),
});
Expand Down

0 comments on commit f1e417a

Please sign in to comment.