Skip to content

Commit

Permalink
Use usize::max_value(), which actually exists on MRSV
Browse files Browse the repository at this point in the history
whoopsie
  • Loading branch information
na-sa-do committed Mar 15, 2023
1 parent fa2eefd commit ee84c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2698,7 +2698,7 @@ impl<T: Clone, E> FallibleIterator for Repeat<T, E> {

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

Expand Down

0 comments on commit ee84c3e

Please sign in to comment.