Skip to content

Commit

Permalink
Merge pull request #282 from Nullus157/dependabot/cargo/proptest-deri…
Browse files Browse the repository at this point in the history
…ve-0.5

chore(deps): update proptest-derive requirement from 0.4 to 0.5
  • Loading branch information
robjtede authored Jun 24, 2024
2 parents 064130b + 2eb684a commit 7c2d530
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
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 7c2d530

Please sign in to comment.