Skip to content

Commit

Permalink
od: use u64::MAX instead of max_value()
Browse files Browse the repository at this point in the history
to fix warning from legacy_numeric_constants lint
  • Loading branch information
cakebaker authored and BenWiederhake committed Jun 18, 2024
1 parent 80c6b14 commit 94295f9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/uu/od/src/partialreader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,7 @@ mod tests {
fn test_read_skipping_huge_number() {
let mut v = [0; 10];
// test if it does not eat all memory....
let mut sut = PartialReader::new(
Cursor::new(&b"abcdefgh"[..]),
usize::max_value() as u64,
None,
);
let mut sut = PartialReader::new(Cursor::new(&b"abcdefgh"[..]), u64::MAX, None);

sut.read(v.as_mut()).unwrap_err();
}
Expand Down

0 comments on commit 94295f9

Please sign in to comment.