From 762643f1be2217140a972745cf4d6ed69435f722 Mon Sep 17 00:00:00 2001 From: Philippe-Cholet <44676486+Philippe-Cholet@users.noreply.github.com> Date: Tue, 13 Feb 2024 10:36:43 +0100 Subject: [PATCH] Do not use `std::usize` module but `usize` type --- src/powerset.rs | 1 - src/size_hint.rs | 1 - src/ziptuple.rs | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) 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);