From 6e4e318b24e4e09951bb2cbde79da2784b9c3458 Mon Sep 17 00:00:00 2001 From: CYBAI Date: Fri, 26 Jan 2018 02:24:06 +0800 Subject: [PATCH] Use specific negative assertion for ServoArc --- components/servo_arc/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/servo_arc/lib.rs b/components/servo_arc/lib.rs index 600085fd2449..eff21f010194 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();