Skip to content

Commit

Permalink
allow lint clippy::uninlined_format_args
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospb19 committed Dec 25, 2022
1 parent ac89036 commit 48b4d8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ fn clean_and_parse(target: &TempDir, args: &[&str]) -> Result<u64> {
Ok(cleaned)
}

#[allow(clippy::uninlined_format_args)]
fn count_cleaned(target: &TempDir, args: &[&str], old_size: u64) -> Result<u64> {
let cleaned = clean_and_parse(target, args)?;

Expand All @@ -121,6 +122,7 @@ fn count_cleaned(target: &TempDir, args: &[&str], old_size: u64) -> Result<u64>
let calculated_size = old_size - cleaned;
let diff = new_size.abs_diff(calculated_size);
let one_percent = old_size as f64 * 0.01;

assert!(
diff <= one_percent as u64,
"new_size={}, old_size={}, cleaned={}, diff={}, 1%={}",
Expand Down

0 comments on commit 48b4d8c

Please sign in to comment.