Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev authored and rnijveld committed Nov 14, 2024
1 parent c264893 commit 830f886
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test-libz-rs-sys/src/inflate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2160,10 +2160,10 @@ fn blow_up_the_stack_1() {

let config = InflateConfig::default();

let (_, err) = crate::helpers::uncompress_slice_ng(&mut output_ng, &INPUT, config);
let (_, err) = crate::helpers::uncompress_slice_ng(&mut output_ng, INPUT, config);
assert_eq!(err, ReturnCode::DataError);

let (_, err) = uncompress_slice(&mut output_rs, &INPUT, config);
let (_, err) = uncompress_slice(&mut output_rs, INPUT, config);
assert_eq!(err, ReturnCode::DataError);
}

Expand All @@ -2179,9 +2179,9 @@ fn blow_up_the_stack_2() {

let config = InflateConfig::default();

let (_, err) = crate::helpers::uncompress_slice_ng(&mut output_ng, &INPUT, config);
let (_, err) = crate::helpers::uncompress_slice_ng(&mut output_ng, INPUT, config);
assert_eq!(err, ReturnCode::DataError);

let (_, err) = uncompress_slice(&mut output_rs, &INPUT, config);
let (_, err) = uncompress_slice(&mut output_rs, INPUT, config);
assert_eq!(err, ReturnCode::DataError);
}

0 comments on commit 830f886

Please sign in to comment.