diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-12-01 02:50:06 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-12-06 13:15:06 -1000 |
commit | 620a67ff14b21c9da2d23bd96ecb9bb191738457 (patch) | |
tree | f97ae58850c4211664f99b1cb3c835955fe1452a /components/script/dom/range.rs | |
parent | 73b6e705b4e18f53f36c8af98543dc2819764ef5 (diff) | |
download | servo-620a67ff14b21c9da2d23bd96ecb9bb191738457.tar.gz servo-620a67ff14b21c9da2d23bd96ecb9bb191738457.zip |
Mark JSTraceable and its method as unsafe
Diffstat (limited to 'components/script/dom/range.rs')
-rw-r--r-- | components/script/dom/range.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/range.rs b/components/script/dom/range.rs index b2507aeab3b..723239ea3d3 100644 --- a/components/script/dom/range.rs +++ b/components/script/dom/range.rs @@ -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() } } |