summaryrefslogtreecommitdiff
path: root/cli/tools/installer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/installer.rs')
-rw-r--r--cli/tools/installer.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs
index db49ed7a0..07397131c 100644
--- a/cli/tools/installer.rs
+++ b/cli/tools/installer.rs
@@ -77,7 +77,7 @@ deno {} "$@"
"#,
args.join(" "),
);
- let mut file = File::create(&shim_data.file_path.with_extension(""))?;
+ let mut file = File::create(shim_data.file_path.with_extension(""))?;
file.write_all(template.as_bytes())?;
Ok(())
}
@@ -1127,11 +1127,11 @@ mod tests {
// create extra files
{
let file_path = file_path.with_extension("tsconfig.json");
- File::create(&file_path).unwrap();
+ File::create(file_path).unwrap();
}
{
let file_path = file_path.with_extension("lock.json");
- File::create(&file_path).unwrap();
+ File::create(file_path).unwrap();
}
uninstall("echo_test".to_string(), Some(temp_dir.path().to_path_buf()))