mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Use specific negative assertion for ServoArc
This commit is contained in:
parent
5104d2947f
commit
6e4e318b24
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue