diff --git a/src/bin/fish.rs b/src/bin/fish.rs index 5fe8e6313..bca4e9958 100644 --- a/src/bin/fish.rs +++ b/src/bin/fish.rs @@ -128,7 +128,7 @@ fn install(confirm: bool, dir: &Path) -> bool { } // Remove the install directory first, to clean out any removed files. - if let Err(err) = fs::remove_dir_all(dir.clone()) { + if let Err(err) = fs::remove_dir_all(dir) { if err.kind() != ErrorKind::NotFound { eprintln!("Removing '{}' failed: {}", dir.display(), err); return false;