File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change
1
+ #![ allow( clippy:: exit) ]
2
+
1
3
use anyhow:: Result ;
2
4
use std:: {
3
5
env,
Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ mod tests {
383
383
version = "0.1.0"
384
384
edition = "2021"
385
385
"# ;
386
- write ! ( temp, "{}" , cargo_toml ) . expect ( "failed to write to temp file" ) ;
386
+ write ! ( temp, "{cargo_toml}" ) . expect ( "failed to write to temp file" ) ;
387
387
let runner = Runner :: new ( PathBuf :: from ( "dummy_base" ) ) ;
388
388
let pkg_name = runner
389
389
. get_package_name ( temp. path ( ) )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ mod tests {
11
11
fn test_config_from_path ( ) {
12
12
let mut tmp = NamedTempFile :: new ( ) . unwrap ( ) ;
13
13
let config_json = r#"{ "output_path": "/tmp/output.txt" }"# ;
14
- write ! ( tmp, "{}" , config_json ) . unwrap ( ) ;
14
+ write ! ( tmp, "{config_json}" ) . unwrap ( ) ;
15
15
let config = Config :: from_path ( tmp. path ( ) ) . unwrap ( ) ;
16
16
assert_eq ! ( config. output_path. to_str( ) . unwrap( ) , "/tmp/output.txt" ) ;
17
17
}
You can’t perform that action at this time.
0 commit comments