Inline format! args wherever possible

This commit is contained in:
Lena authored and Martin Nordholts committed 2024-02-25 00:38:11 +01:00
1 parent 487bed2d95
commit 4c85483486
17 files changed
+35 -40

No files matched your search

+2 -2
View File
@@ -29,7 +29,7 @@ impl BatTester {
"--color=never",
"--decorations=always",
"--terminal-width=80",
&format!("--style={}", style),
&format!("--style={style}"),
])
.output()
.expect("bat failed");
@@ -40,7 +40,7 @@ impl BatTester {
.replace("tests/snapshots/", "");
let mut expected = String::new();
let mut file = File::open(format!("tests/snapshots/output/{}.snapshot.txt", name))
let mut file = File::open(format!("tests/snapshots/output/{name}.snapshot.txt"))
.expect("snapshot file missing");
file.read_to_string(&mut expected)
.expect("could not read snapshot file");