summaryrefslogtreecommitdiff
path: root/cli/tools/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/test.rs')
-rw-r--r--cli/tools/test.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tools/test.rs b/cli/tools/test.rs
index c4c39ede3..e680d5718 100644
--- a/cli/tools/test.rs
+++ b/cli/tools/test.rs
@@ -323,7 +323,7 @@ impl PrettyTestReporter {
if url.scheme() == "file" {
if let Some(mut r) = self.cwd.make_relative(&url) {
if !r.starts_with("../") {
- r = format!("./{}", r);
+ r = format!("./{r}");
}
return r;
}
@@ -513,7 +513,7 @@ impl PrettyTestReporter {
);
print!(" {} ...", root.name);
for name in ancestor_names {
- print!(" {} ...", name);
+ print!(" {name} ...");
}
print!(" {} ...", description.name);
self.in_new_line = false;
@@ -584,7 +584,7 @@ impl PrettyTestReporter {
}
println!("{}\n", colors::white_bold_on_red(" FAILURES "));
for failure_title in failure_titles {
- println!("{}", failure_title);
+ println!("{failure_title}");
}
}
@@ -600,7 +600,7 @@ impl PrettyTestReporter {
} else if count == 1 {
" (1 step)".to_string()
} else {
- format!(" ({} steps)", count)
+ format!(" ({count} steps)")
}
};