diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-12-06 18:31:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-06 18:31:46 -0800 |
commit | 32c121b6ff4a3f9336e742ecf1a96b187986fde0 (patch) | |
tree | 678963322c292d39a286a78f299def638d6c2c17 /components/script/dom/range.rs | |
parent | b54cfc9f259e72ea26e68ec8a7b1d617cf0812d3 (diff) | |
parent | 535765907d667466636e0fcaa9a7c6a078cf397d (diff) | |
download | servo-32c121b6ff4a3f9336e742ecf1a96b187986fde0.tar.gz servo-32c121b6ff4a3f9336e742ecf1a96b187986fde0.zip |
Auto merge of #14473 - nox:raf-safety, r=Ms2ger
Clean up JSTraceable and how we use it
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14473)
<!-- Reviewable:end -->
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() } } |