diff --git a/src/lib.rs b/src/lib.rs index eca88d8..d036905 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -939,7 +939,7 @@ impl SmallVec { // // In our case, this also ensures that a smallvec of zero-size items never spills, // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. - core::usize::MAX + usize::MAX } } @@ -1397,7 +1397,7 @@ impl SmallVec { } let (lower_size_bound, _) = iter.size_hint(); - assert!(lower_size_bound <= core::isize::MAX as usize); // Ensure offset is indexable + assert!(lower_size_bound <= isize::MAX as usize); // Ensure offset is indexable assert!(index + lower_size_bound >= index); // Protect against overflow let mut num_added = 0;