cleaner drop impl for lock

This commit is contained in:
Cyryl Płotnicki 2020-11-08 19:27:50 +00:00
parent 59c6c5465b
commit be7f27d48d

View file

@ -87,9 +87,7 @@ impl Lock {
impl Drop for Lock {
fn drop(&mut self) {
match self.delete_lock_file() {
_ => (),
}
let _ = self.delete_lock_file();
}
}