style: simplify string formatting
Most of this code was written before this was supported by Rust. Closes #2912
This commit is contained in:
committed by
Andrew Gallant
parent
624bbf7dce
commit
861f6d374f
@@ -75,7 +75,7 @@ impl Dir {
|
||||
.expect("executable's directory")
|
||||
.to_path_buf();
|
||||
let dir =
|
||||
env::temp_dir().join(TEST_DIR).join(name).join(&format!("{}", id));
|
||||
env::temp_dir().join(TEST_DIR).join(name).join(&format!("{id}"));
|
||||
if dir.exists() {
|
||||
nice_err(&dir, fs::remove_dir_all(&dir));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user