Skip to content

Commit 762643f

Browse files
Do not use std::usize module but usize type
1 parent 4efffc1 commit 762643f

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

src/powerset.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use alloc::vec::Vec;
22
use std::fmt;
33
use std::iter::FusedIterator;
4-
use std::usize;
54

65
use super::combinations::{combinations, Combinations};
76
use crate::adaptors::checked_binomial;

src/size_hint.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//!
33
44
use std::cmp;
5-
use std::usize;
65

76
/// `SizeHint` is the return type of `Iterator::size_hint()`.
87
pub type SizeHint = (usize, Option<usize>);

src/ziptuple.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ macro_rules! impl_zip_iter {
8282

8383
fn size_hint(&self) -> (usize, Option<usize>)
8484
{
85-
let sh = (::std::usize::MAX, None);
85+
let sh = (usize::MAX, None);
8686
let ($(ref $B,)*) = self.t;
8787
$(
8888
let sh = size_hint::min($B.size_hint(), sh);

0 commit comments

Comments
 (0)