From 12dce7e676781a03252c4c2f22c74bc691edc684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 16 May 2021 11:51:33 +0100 Subject: [PATCH] Fix lint --- src/index/lock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index/lock.rs b/src/index/lock.rs index 960f311..44725f9 100644 --- a/src/index/lock.rs +++ b/src/index/lock.rs @@ -69,7 +69,7 @@ impl Lock { break; } } - if locks.iter().count() == 0 { + if locks.is_empty() { return Ok(false); } Ok(only_mine)