Skip to content

Commit 4d00686

Browse files
committed
Take a mutable borrow in RefCell Trace impl
1 parent 37aea9c commit 4d00686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ deref_traces_sized! {
310310
unsafe impl<T: ?Sized + Trace> Trace for RefCell<T> {
311311
#[inline]
312312
fn trace(&self, ctx: &mut Context<'_>) {
313-
if let Ok(borrow) = self.try_borrow() {
313+
if let Ok(borrow) = self.try_borrow_mut() {
314314
borrow.trace(ctx);
315315
}
316316
}

0 commit comments

Comments
 (0)