Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed Jul 31, 2023
1 parent 0d7c466 commit 0c43545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boa_gc/src/internals/ephemeron_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,14 @@ impl<K: Trace, V: Trace> ErasedEphemeronBox for EphemeronBox<K, V> {
// use after free.
unsafe {
if let Some(value) = self.value() {
value.trace_non_roots()
value.trace_non_roots();
}
}
}

fn finalize_and_clear(&self) {
// SAFETY: the invariants of the garbage collector ensures this is only executed when
// there are no remaining references to the inner data.
unsafe { (&mut *self.data.get()).take() };
unsafe { (*self.data.get()).take() };
}
}

0 comments on commit 0c43545

Please sign in to comment.