mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Mark JSTraceable and its method as unsafe
This commit is contained in:
parent
73b6e705b4
commit
620a67ff14
16 changed files with 191 additions and 185 deletions
|
@ -1262,8 +1262,8 @@ impl HeapSizeOf for WeakRangeVec {
|
|||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
impl JSTraceable for WeakRangeVec {
|
||||
fn trace(&self, _: *mut JSTracer) {
|
||||
unsafe { (*self.cell.get()).retain_alive() }
|
||||
unsafe impl JSTraceable for WeakRangeVec {
|
||||
unsafe fn trace(&self, _: *mut JSTracer) {
|
||||
(*self.cell.get()).retain_alive()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue