From f1e417a74f93a51360e856787d188b699279264f Mon Sep 17 00:00:00 2001 From: kyren Date: Mon, 28 Nov 2022 21:10:40 -0500 Subject: [PATCH] don't need the dynamic borrow check here --- src/gc-arena/src/dynamic_arena.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gc-arena/src/dynamic_arena.rs b/src/gc-arena/src/dynamic_arena.rs index 2ba11ac..818d614 100644 --- a/src/gc-arena/src/dynamic_arena.rs +++ b/src/gc-arena/src/dynamic_arena.rs @@ -66,7 +66,7 @@ impl<'gc> DynamicRootSet<'gc> { ) -> DynamicRoot { let rc = Rc::new(()); - self.handles.borrow_mut().push(Handle { + self.handles.get_mut().push(Handle { ptr: root.ptr, rc: Rc::downgrade(&rc), });