mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Remove pointless assertion.
It's a reference, it's not going to be null, and if it was, it would've already been UB on the caller.
This commit is contained in:
parent
446536b9c3
commit
20a0d52598
1 changed files with 0 additions and 1 deletions
|
@ -109,7 +109,6 @@ pub unsafe trait HasArcFFI : HasFFI {
|
|||
///
|
||||
/// &GeckoType -> &Arc<ServoType>
|
||||
fn as_arc<'a>(ptr: &'a &Self::FFIType) -> &'a RawOffsetArc<Self> {
|
||||
debug_assert!(!(ptr as *const _).is_null());
|
||||
unsafe {
|
||||
transmute::<&&Self::FFIType, &RawOffsetArc<Self>>(ptr)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue