summaryrefslogtreecommitdiff
path: root/cli/tools
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools')
-rw-r--r--cli/tools/installer.rs8
-rw-r--r--cli/tools/test.rs12
2 files changed, 6 insertions, 14 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs
index 383bf74cf..e21e4954a 100644
--- a/cli/tools/installer.rs
+++ b/cli/tools/installer.rs
@@ -342,11 +342,11 @@ fn resolve_shim_data(
}
if let Some(inspect) = flags.inspect {
- executable_args.push(format!("--inspect={}", inspect.to_string()));
+ executable_args.push(format!("--inspect={}", inspect));
}
if let Some(inspect_brk) = flags.inspect_brk {
- executable_args.push(format!("--inspect-brk={}", inspect_brk.to_string()));
+ executable_args.push(format!("--inspect-brk={}", inspect_brk));
}
if let Some(import_map_path) = &flags.import_map_path {
@@ -989,12 +989,12 @@ mod tests {
let mut expected_string = format!(
"--import-map '{}' 'http://localhost:4545/cat.ts'",
- import_map_url.to_string()
+ import_map_url
);
if cfg!(windows) {
expected_string = format!(
"\"--import-map\" \"{}\" \"http://localhost:4545/cat.ts\"",
- import_map_url.to_string()
+ import_map_url
);
}
diff --git a/cli/tools/test.rs b/cli/tools/test.rs
index d991ef1ec..5e2d74ecf 100644
--- a/cli/tools/test.rs
+++ b/cli/tools/test.rs
@@ -267,11 +267,7 @@ impl PrettyTestReporter {
print!("{}", " ".repeat(description.level));
}
- println!(
- "{} {}",
- status,
- colors::gray(human_elapsed(elapsed.into())).to_string()
- );
+ println!("{} {}", status, colors::gray(human_elapsed(elapsed.into())));
if let Some(error_text) = result.error() {
for line in error_text.lines() {
@@ -357,11 +353,7 @@ impl TestReporter for PrettyTestReporter {
print!(" ");
}
- println!(
- "{} {}",
- status,
- colors::gray(human_elapsed(elapsed.into())).to_string()
- );
+ println!("{} {}", status, colors::gray(human_elapsed(elapsed.into())));
}
fn report_step_wait(&mut self, description: &TestStepDescription) {