diff --git a/components/servo_arc/lib.rs b/components/servo_arc/lib.rs index 600085fd244..eff21f01019 100644 --- a/components/servo_arc/lib.rs +++ b/components/servo_arc/lib.rs @@ -529,7 +529,7 @@ impl Arc> { where I: Iterator + ExactSizeIterator { use ::std::mem::size_of; - assert!(size_of::() != 0, "Need to think about ZST"); + assert_ne!(size_of::(), 0, "Need to think about ZST"); // Compute the required size for the allocation. let num_items = items.len();