Skip to content

Commit 2eb684a

Browse files
committed
chore: clippy
1 parent 95311a2 commit 2eb684a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/codec/lzma/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub struct LzmaDecoder {
1010
impl LzmaDecoder {
1111
pub fn new() -> Self {
1212
Self {
13-
inner: crate::codec::Xz2Decoder::new(u64::max_value()),
13+
inner: crate::codec::Xz2Decoder::new(u64::MAX),
1414
}
1515
}
1616

src/codec/xz/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub struct XzDecoder {
1111
impl XzDecoder {
1212
pub fn new() -> Self {
1313
Self {
14-
inner: crate::codec::Xz2Decoder::new(u64::max_value()),
14+
inner: crate::codec::Xz2Decoder::new(u64::MAX),
1515
skip_padding: None,
1616
}
1717
}

tests/utils/algos.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ algos! {
202202

203203
to_vec(XzDecoder::new_stream(
204204
bytes,
205-
Stream::new_lzma_decoder(u64::max_value()).unwrap(),
205+
Stream::new_lzma_decoder(u64::MAX).unwrap(),
206206
))
207207
}
208208
}

tests/utils/test_cases.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ macro_rules! io_test_cases {
102102
fn with_level_max() {
103103
let encoder = bufread::Encoder::with_quality(
104104
bufread::from(&one_to_six_stream()),
105-
Level::Precise(i32::max_value()),
105+
Level::Precise(i32::MAX),
106106
);
107107
let compressed = read::to_vec(encoder);
108108
let output = sync::decompress(&compressed);
@@ -354,7 +354,7 @@ macro_rules! io_test_cases {
354354
|input| {
355355
Box::pin(write::Encoder::with_quality(
356356
input,
357-
Level::Precise(i32::max_value()),
357+
Level::Precise(i32::MAX),
358358
))
359359
},
360360
65_536,

0 commit comments

Comments
 (0)