diff options
author | CYBAI <cyb.ai.815@gmail.com> | 2018-01-26 02:24:06 +0800 |
---|---|---|
committer | CYBAI <cyb.ai.815@gmail.com> | 2018-01-26 02:24:06 +0800 |
commit | 6e4e318b24e4e09951bb2cbde79da2784b9c3458 (patch) | |
tree | 042063cceaac7fbc5601e6758f53a34cef91503e /components/servo_arc/lib.rs | |
parent | 5104d2947fafb59022044be8c520810c7f9659c3 (diff) | |
download | servo-6e4e318b24e4e09951bb2cbde79da2784b9c3458.tar.gz servo-6e4e318b24e4e09951bb2cbde79da2784b9c3458.zip |
Use specific negative assertion for ServoArc
Diffstat (limited to 'components/servo_arc/lib.rs')
-rw-r--r-- | components/servo_arc/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<H, T> Arc<HeaderSlice<H, [T]>> { where I: Iterator<Item=T> + ExactSizeIterator { use ::std::mem::size_of; - assert!(size_of::<T>() != 0, "Need to think about ZST"); + assert_ne!(size_of::<T>(), 0, "Need to think about ZST"); // Compute the required size for the allocation. let num_items = items.len(); |