mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-02 03:12:25 +01:00
Inline format!
args wherever possible
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user