clippy: fix if_let_redundant_pattern_matching warnings

This commit is contained in:
Laurentiu Nicola
2017-05-16 19:36:19 +03:00
committed by Paul Masurel
parent feec2e2620
commit 1af1f7e0d1

View File

@@ -175,7 +175,7 @@ impl ManagedDirectory {
managed_paths_write.remove(delete_file);
}
}
if let Err(_) = save_managed_paths(self.directory.as_mut(), &meta_informations_wlock) {
if save_managed_paths(self.directory.as_mut(), &meta_informations_wlock).is_err() {
error!("Failed to save the list of managed files.");
}
}