mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
od: use u64::MAX instead of max_value()
to fix warning from legacy_numeric_constants lint
This commit is contained in:
parent
80c6b14e05
commit
94295f9bd7
1 changed files with 1 additions and 5 deletions
|
@ -149,11 +149,7 @@ mod tests {
|
||||||
fn test_read_skipping_huge_number() {
|
fn test_read_skipping_huge_number() {
|
||||||
let mut v = [0; 10];
|
let mut v = [0; 10];
|
||||||
// test if it does not eat all memory....
|
// test if it does not eat all memory....
|
||||||
let mut sut = PartialReader::new(
|
let mut sut = PartialReader::new(Cursor::new(&b"abcdefgh"[..]), u64::MAX, None);
|
||||||
Cursor::new(&b"abcdefgh"[..]),
|
|
||||||
usize::max_value() as u64,
|
|
||||||
None,
|
|
||||||
);
|
|
||||||
|
|
||||||
sut.read(v.as_mut()).unwrap_err();
|
sut.read(v.as_mut()).unwrap_err();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue