Remove unneeded #allow(unsafe_code)

This commit is contained in:
Stefan Schindler 2016-11-05 17:42:29 +01:00
parent f7875dad1a
commit d2c23942a8

View file

@ -126,7 +126,6 @@ pub struct WeakMediaQueryListVec {
cell: DOMRefCell<WeakRefVec<MediaQueryList>>, cell: DOMRefCell<WeakRefVec<MediaQueryList>>,
} }
#[allow(unsafe_code)]
impl WeakMediaQueryListVec { impl WeakMediaQueryListVec {
/// Create a new vector of weak references to MediaQueryList /// Create a new vector of weak references to MediaQueryList
pub fn new() -> Self { pub fn new() -> Self {
@ -148,7 +147,6 @@ impl WeakMediaQueryListVec {
} }
} }
#[allow(unsafe_code)]
impl JSTraceable for WeakMediaQueryListVec { impl JSTraceable for WeakMediaQueryListVec {
fn trace(&self, _: *mut JSTracer) { fn trace(&self, _: *mut JSTracer) {
self.cell.borrow_mut().retain_alive() self.cell.borrow_mut().retain_alive()