Fix compiler warning when building with installable support

This commit is contained in:
Johannes Altmanninger
2025-04-02 09:03:41 +02:00
parent 5e25cdaa6f
commit 2731c4f8c8

View File

@@ -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;