From 2731c4f8c80bd174cc6070f5cc83af6655bb37c4 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Wed, 2 Apr 2025 09:03:41 +0200 Subject: [PATCH] Fix compiler warning when building with installable support --- src/bin/fish.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;