From 777b332c176df323519a153e2bdd65b7f496ba7a Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Sun, 25 Dec 2022 14:18:12 -0600 Subject: [PATCH 1/2] Switch to 2021 edition --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9a69ebf..1154cee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "cargo-sweep" description = "A tool for cleaning unused build files created by Cargo" version = "0.6.2" -edition = "2018" +edition = "2021" authors = ["holmgr "] keywords = ["tool", "cli", "cargo"] license = "MIT" From cb0c61b49e73c2e871cd9b4cd195dd59a975d07c Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Sun, 25 Dec 2022 14:18:31 -0600 Subject: [PATCH 2/2] Fix clippy warnings --- tests/integration.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/integration.rs b/tests/integration.rs index f2458c9..badde8a 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -114,10 +114,7 @@ fn count_cleaned(target: &TempDir, args: &[&str], old_size: u64) -> Result let one_percent = old_size as f64 * 0.01; assert!( diff <= one_percent as u64, - "new_size={}, old_size={}, cleaned={}, diff={diff}, 1%={one_percent}", - new_size, - old_size, - cleaned + "new_size={new_size}, old_size={old_size}, cleaned={cleaned}, diff={diff}, 1%={one_percent}" ); Ok(cleaned)