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:
Emilio Cobos Álvarez 2017-12-29 19:10:21 +01:00
parent 446536b9c3
commit 20a0d52598
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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)
}