aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/mediaquerylist.rs
diff options
context:
space:
mode:
authorStefan Schindler <dns2utf8@estada.ch>2016-11-05 17:42:29 +0100
committerStefan Schindler <dns2utf8@estada.ch>2016-11-05 17:42:29 +0100
commitd2c23942a89b398d86fcebbbe9f22c84a73dcc1c (patch)
tree076f09416dd1f54ba1cfeb306deadd13b08bad38 /components/script/dom/mediaquerylist.rs
parentf7875dad1a43792ff3869f292990d03d30ebd9eb (diff)
downloadservo-d2c23942a89b398d86fcebbbe9f22c84a73dcc1c.tar.gz
servo-d2c23942a89b398d86fcebbbe9f22c84a73dcc1c.zip
Remove unneeded #allow(unsafe_code)
Diffstat (limited to 'components/script/dom/mediaquerylist.rs')
-rw-r--r--components/script/dom/mediaquerylist.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/components/script/dom/mediaquerylist.rs b/components/script/dom/mediaquerylist.rs
index c140f5f2c48..3c6215b883f 100644
--- a/components/script/dom/mediaquerylist.rs
+++ b/components/script/dom/mediaquerylist.rs
@@ -126,7 +126,6 @@ pub struct WeakMediaQueryListVec {
cell: DOMRefCell<WeakRefVec<MediaQueryList>>,
}
-#[allow(unsafe_code)]
impl WeakMediaQueryListVec {
/// Create a new vector of weak references to MediaQueryList
pub fn new() -> Self {
@@ -148,7 +147,6 @@ impl WeakMediaQueryListVec {
}
}
-#[allow(unsafe_code)]
impl JSTraceable for WeakMediaQueryListVec {
fn trace(&self, _: *mut JSTracer) {
self.cell.borrow_mut().retain_alive()