Skip to content

Commit 9cb358c

Browse files
committed
fix clippy lints on all targets
1 parent 843deda commit 9cb358c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

tests/difftests/bin/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::exit)]
2+
13
use anyhow::Result;
24
use std::{
35
env,

tests/difftests/bin/src/runner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ mod tests {
383383
version = "0.1.0"
384384
edition = "2021"
385385
"#;
386-
write!(temp, "{}", cargo_toml).expect("failed to write to temp file");
386+
write!(temp, "{cargo_toml}").expect("failed to write to temp file");
387387
let runner = Runner::new(PathBuf::from("dummy_base"));
388388
let pkg_name = runner
389389
.get_package_name(temp.path())

tests/difftests/lib/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mod tests {
1111
fn test_config_from_path() {
1212
let mut tmp = NamedTempFile::new().unwrap();
1313
let config_json = r#"{ "output_path": "/tmp/output.txt" }"#;
14-
write!(tmp, "{}", config_json).unwrap();
14+
write!(tmp, "{config_json}").unwrap();
1515
let config = Config::from_path(tmp.path()).unwrap();
1616
assert_eq!(config.output_path.to_str().unwrap(), "/tmp/output.txt");
1717
}

0 commit comments

Comments
 (0)