diff --git a/components/servo_arc/lib.rs b/components/servo_arc/lib.rs index 1301a8e6611..600085fd244 100644 --- a/components/servo_arc/lib.rs +++ b/components/servo_arc/lib.rs @@ -718,7 +718,7 @@ impl Arc> { /// is not modified. #[inline] pub fn into_thin(a: Self) -> ThinArc { - assert!(a.header.length == a.slice.len(), + assert_eq!(a.header.length, a.slice.len(), "Length needs to be correct for ThinArc to work"); let fat_ptr: *mut ArcInner> = a.ptr(); mem::forget(a); @@ -987,6 +987,6 @@ mod tests { let _ = x == x; Arc::from_thin(x.clone()); } - assert!(canary.load(Acquire) == 1); + assert_eq!(canary.load(Acquire), 1); } }