File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pub struct LzmaDecoder {
10
10
impl LzmaDecoder {
11
11
pub fn new ( ) -> Self {
12
12
Self {
13
- inner : crate :: codec:: Xz2Decoder :: new ( u64:: max_value ( ) ) ,
13
+ inner : crate :: codec:: Xz2Decoder :: new ( u64:: MAX ) ,
14
14
}
15
15
}
16
16
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ pub struct XzDecoder {
11
11
impl XzDecoder {
12
12
pub fn new ( ) -> Self {
13
13
Self {
14
- inner : crate :: codec:: Xz2Decoder :: new ( u64:: max_value ( ) ) ,
14
+ inner : crate :: codec:: Xz2Decoder :: new ( u64:: MAX ) ,
15
15
skip_padding : None ,
16
16
}
17
17
}
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ algos! {
202
202
203
203
to_vec( XzDecoder :: new_stream(
204
204
bytes,
205
- Stream :: new_lzma_decoder( u64 :: max_value ( ) ) . unwrap( ) ,
205
+ Stream :: new_lzma_decoder( u64 :: MAX ) . unwrap( ) ,
206
206
) )
207
207
}
208
208
}
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ macro_rules! io_test_cases {
102
102
fn with_level_max( ) {
103
103
let encoder = bufread:: Encoder :: with_quality(
104
104
bufread:: from( & one_to_six_stream( ) ) ,
105
- Level :: Precise ( i32 :: max_value ( ) ) ,
105
+ Level :: Precise ( i32 :: MAX ) ,
106
106
) ;
107
107
let compressed = read:: to_vec( encoder) ;
108
108
let output = sync:: decompress( & compressed) ;
@@ -354,7 +354,7 @@ macro_rules! io_test_cases {
354
354
|input| {
355
355
Box :: pin( write:: Encoder :: with_quality(
356
356
input,
357
- Level :: Precise ( i32 :: max_value ( ) ) ,
357
+ Level :: Precise ( i32 :: MAX ) ,
358
358
) )
359
359
} ,
360
360
65_536 ,
You can’t perform that action at this time.
0 commit comments