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+
13use anyhow:: Result ;
24use std:: {
35 env,
Original file line number Diff line number Diff 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 ( ) )
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments