Skip to content

Commit

Permalink
m: Silence clippy
Browse files Browse the repository at this point in the history
usize::max_value() => usize::MAX

Signed-off-by: John Nunley <dev@notgull.net>
  • Loading branch information
notgull committed Aug 23, 2024
1 parent 6f89c8b commit 9160e8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ impl<T: Clone> Stream for Repeat<T> {
}

fn size_hint(&self) -> (usize, Option<usize>) {
(usize::max_value(), None)
(usize::MAX, None)
}
}

Expand Down Expand Up @@ -429,7 +429,7 @@ where
}

fn size_hint(&self) -> (usize, Option<usize>) {
(usize::max_value(), None)
(usize::MAX, None)
}
}

Expand Down

0 comments on commit 9160e8a

Please sign in to comment.