mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Remove some uses of unused unsafe.
This commit is contained in:
parent
2efbf2230a
commit
69ddb9501b
10 changed files with 45 additions and 60 deletions
|
@ -266,9 +266,7 @@ impl Atom {
|
|||
#[inline]
|
||||
pub unsafe fn from_addrefed(ptr: *mut nsAtom) -> Self {
|
||||
assert!(!ptr.is_null());
|
||||
unsafe {
|
||||
Atom(WeakAtom::new(ptr))
|
||||
}
|
||||
Atom(WeakAtom::new(ptr))
|
||||
}
|
||||
|
||||
/// Convert this atom into an addrefed nsAtom pointer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue