Skip to content

Commit

Permalink
Take a mutable borrow in RefCell Trace impl
Browse files Browse the repository at this point in the history
  • Loading branch information
frengor committed Jul 19, 2024
1 parent 37aea9c commit 4d00686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ deref_traces_sized! {
unsafe impl<T: ?Sized + Trace> Trace for RefCell<T> {
#[inline]
fn trace(&self, ctx: &mut Context<'_>) {
if let Ok(borrow) = self.try_borrow() {
if let Ok(borrow) = self.try_borrow_mut() {
borrow.trace(ctx);
}
}
Expand Down

0 comments on commit 4d00686

Please sign in to comment.