diff --git a/src/powerset.rs b/src/powerset.rs index 9a7131a3e..1b2b38540 100644 --- a/src/powerset.rs +++ b/src/powerset.rs @@ -1,7 +1,6 @@ use alloc::vec::Vec; use std::fmt; use std::iter::FusedIterator; -use std::usize; use super::combinations::{combinations, Combinations}; use crate::adaptors::checked_binomial; diff --git a/src/size_hint.rs b/src/size_hint.rs index 857e0c4c6..6cfead7f2 100644 --- a/src/size_hint.rs +++ b/src/size_hint.rs @@ -2,7 +2,6 @@ //! use std::cmp; -use std::usize; /// `SizeHint` is the return type of `Iterator::size_hint()`. pub type SizeHint = (usize, Option); diff --git a/src/ziptuple.rs b/src/ziptuple.rs index 5ff0fad33..e299c4013 100644 --- a/src/ziptuple.rs +++ b/src/ziptuple.rs @@ -82,7 +82,7 @@ macro_rules! impl_zip_iter { fn size_hint(&self) -> (usize, Option) { - let sh = (::std::usize::MAX, None); + let sh = (usize::MAX, None); let ($(ref $B,)*) = self.t; $( let sh = size_hint::min($B.size_hint(), sh);