diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index f8a1837de33..32871baf50a 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -1787,7 +1787,7 @@ impl<'le> Eq for GeckoElement<'le> {} impl<'le> Hash for GeckoElement<'le> { #[inline] fn hash(&self, state: &mut H) { - (self.0 as *const _).hash(state); + (self.0 as *const RawGeckoElement).hash(state); } } 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) }