aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/range.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-12-06 18:31:46 -0800
committerGitHub <noreply@github.com>2016-12-06 18:31:46 -0800
commit32c121b6ff4a3f9336e742ecf1a96b187986fde0 (patch)
tree678963322c292d39a286a78f299def638d6c2c17 /components/script/dom/range.rs
parentb54cfc9f259e72ea26e68ec8a7b1d617cf0812d3 (diff)
parent535765907d667466636e0fcaa9a7c6a078cf397d (diff)
downloadservo-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.rs6
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()
}
}