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)