From 20a0d5259844b59211a7e16d26b262c7ed83140e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 29 Dec 2017 19:10:21 +0100 Subject: [PATCH] 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. --- components/style/gecko_bindings/sugar/ownership.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/components/style/gecko_bindings/sugar/ownership.rs b/components/style/gecko_bindings/sugar/ownership.rs index b0ac00368ea..8695efaaa40 100644 --- a/components/style/gecko_bindings/sugar/ownership.rs +++ b/components/style/gecko_bindings/sugar/ownership.rs @@ -109,7 +109,6 @@ pub unsafe trait HasArcFFI : HasFFI { /// /// &GeckoType -> &Arc fn as_arc<'a>(ptr: &'a &Self::FFIType) -> &'a RawOffsetArc { - debug_assert!(!(ptr as *const _).is_null()); unsafe { transmute::<&&Self::FFIType, &RawOffsetArc>(ptr) }