mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Remove unneeded #allow(unsafe_code)
This commit is contained in:
parent
f7875dad1a
commit
d2c23942a8
1 changed files with 0 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue