diff --git a/src/extrema_set.rs b/src/extrema_set.rs index d24114c6d..7d353821f 100644 --- a/src/extrema_set.rs +++ b/src/extrema_set.rs @@ -1,4 +1,3 @@ -#![cfg(feature = "use_alloc")] use alloc::{vec, vec::Vec}; use std::cmp::Ordering; diff --git a/src/grouping_map.rs b/src/grouping_map.rs index b4aae9ecf..86cb55dc0 100644 --- a/src/grouping_map.rs +++ b/src/grouping_map.rs @@ -1,5 +1,3 @@ -#![cfg(feature = "use_std")] - use crate::{ adaptors::map::{MapSpecialCase, MapSpecialCaseFn}, MinMaxResult, diff --git a/tests/zip.rs b/tests/zip.rs index 716ac20b3..daed31e32 100644 --- a/tests/zip.rs +++ b/tests/zip.rs @@ -20,7 +20,7 @@ fn test_zip_longest_size_hint() { let v: &[_] = &[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; let v2 = &[10, 11, 12]; - assert_eq!(c.zip_longest(v.iter()).size_hint(), (std::usize::MAX, None)); + assert_eq!(c.zip_longest(v.iter()).size_hint(), (usize::MAX, None)); assert_eq!(v.iter().zip_longest(v2.iter()).size_hint(), (10, Some(10))); }