Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Jun 24, 2024
1 parent 95311a2 commit 2eb684a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/codec/lzma/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub struct LzmaDecoder {
impl LzmaDecoder {
pub fn new() -> Self {
Self {
inner: crate::codec::Xz2Decoder::new(u64::max_value()),
inner: crate::codec::Xz2Decoder::new(u64::MAX),
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/codec/xz/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct XzDecoder {
impl XzDecoder {
pub fn new() -> Self {
Self {
inner: crate::codec::Xz2Decoder::new(u64::max_value()),
inner: crate::codec::Xz2Decoder::new(u64::MAX),
skip_padding: None,
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/algos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ algos! {

to_vec(XzDecoder::new_stream(
bytes,
Stream::new_lzma_decoder(u64::max_value()).unwrap(),
Stream::new_lzma_decoder(u64::MAX).unwrap(),
))
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/utils/test_cases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ macro_rules! io_test_cases {
fn with_level_max() {
let encoder = bufread::Encoder::with_quality(
bufread::from(&one_to_six_stream()),
Level::Precise(i32::max_value()),
Level::Precise(i32::MAX),
);
let compressed = read::to_vec(encoder);
let output = sync::decompress(&compressed);
Expand Down Expand Up @@ -354,7 +354,7 @@ macro_rules! io_test_cases {
|input| {
Box::pin(write::Encoder::with_quality(
input,
Level::Precise(i32::max_value()),
Level::Precise(i32::MAX),
))
},
65_536,
Expand Down

0 comments on commit 2eb684a

Please sign in to comment.