diff options
Diffstat (limited to 'components/servo_arc')
-rw-r--r-- | components/servo_arc/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<H: 'static, T: 'static> Arc<HeaderSliceWithLength<H, [T]>> { /// is not modified. #[inline] pub fn into_thin(a: Self) -> ThinArc<H, T> { - 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<HeaderSliceWithLength<H, [T]>> = 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); } } |