mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 18:21:16 -03:00
Fix compiler warning when building with installable support
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user