Skip to content

Commit

Permalink
Use specific negative assertion for ServoArc
Browse files Browse the repository at this point in the history
  • Loading branch information
CYBAI committed Jan 25, 2018
1 parent 5104d29 commit 6e4e318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/servo_arc/lib.rs
Expand Up @@ -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();
Expand Down

0 comments on commit 6e4e318

Please sign in to comment.