From 95311a251cd4b6ccb9c8ed7e0cff9a39aa475299 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 13:40:04 +0000 Subject: [PATCH 1/2] chore(deps): update proptest-derive requirement from 0.4 to 0.5 Updates the requirements on [proptest-derive](https://github.com/proptest-rs/proptest) to permit the latest version. - [Release notes](https://github.com/proptest-rs/proptest/releases) - [Changelog](https://github.com/proptest-rs/proptest/blob/master/CHANGELOG.md) - [Commits](https://github.com/proptest-rs/proptest/compare/0.4.0...proptest-derive-0.5.0) --- updated-dependencies: - dependency-name: proptest-derive dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 93bc208..171ecf2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,7 +51,7 @@ futures = "0.3.5" futures-test = "0.3.5" ntest = "0.9" proptest = "1" -proptest-derive = "0.4" +proptest-derive = "0.5" rand = "0.8.5" tokio = { version = "1.24.2", default-features = false, features = ["io-util", "macros", "rt-multi-thread", "io-std"] } tokio-util = { version = "0.7", default-features = false, features = ["io"] } From 2eb684a36b80e66302263b0350be08f76fcfab32 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Mon, 24 Jun 2024 14:46:52 +0100 Subject: [PATCH 2/2] chore: clippy --- src/codec/lzma/decoder.rs | 2 +- src/codec/xz/decoder.rs | 2 +- tests/utils/algos.rs | 2 +- tests/utils/test_cases.rs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/codec/lzma/decoder.rs b/src/codec/lzma/decoder.rs index 8e5fae1..2a62b2f 100644 --- a/src/codec/lzma/decoder.rs +++ b/src/codec/lzma/decoder.rs @@ -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), } } diff --git a/src/codec/xz/decoder.rs b/src/codec/xz/decoder.rs index 1200e97..69128d4 100644 --- a/src/codec/xz/decoder.rs +++ b/src/codec/xz/decoder.rs @@ -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, } } diff --git a/tests/utils/algos.rs b/tests/utils/algos.rs index f0afc93..b82bdba 100644 --- a/tests/utils/algos.rs +++ b/tests/utils/algos.rs @@ -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(), )) } } diff --git a/tests/utils/test_cases.rs b/tests/utils/test_cases.rs index 849c3eb..f32b0a8 100644 --- a/tests/utils/test_cases.rs +++ b/tests/utils/test_cases.rs @@ -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); @@ -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,