From be7f27d48d4628aa8e74bcd3f9105c09e040baee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 8 Nov 2020 19:27:50 +0000 Subject: [PATCH] cleaner drop impl for lock --- src/index/lock.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/index/lock.rs b/src/index/lock.rs index 5578bfa..9585614 100644 --- a/src/index/lock.rs +++ b/src/index/lock.rs @@ -87,9 +87,7 @@ impl Lock { impl Drop for Lock { fn drop(&mut self) { - match self.delete_lock_file() { - _ => (), - } + let _ = self.delete_lock_file(); } }