Skip to content

Commit

Permalink
Do not use std::usize module but usize type
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe-Cholet committed Feb 13, 2024
1 parent 4efffc1 commit 762643f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/powerset.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/size_hint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//!

use std::cmp;
use std::usize;

/// `SizeHint` is the return type of `Iterator::size_hint()`.
pub type SizeHint = (usize, Option<usize>);
Expand Down
2 changes: 1 addition & 1 deletion src/ziptuple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ macro_rules! impl_zip_iter {

fn size_hint(&self) -> (usize, Option<usize>)
{
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);
Expand Down

0 comments on commit 762643f

Please sign in to comment.