diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-27 12:01:23 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-27 12:01:23 +0200 |
commit | fdfe7dd60dc78ec63d109d2c0fd3e5a36c5409b2 (patch) | |
tree | ebee1fd4956da8deeb6f0b0b0b8a0d44259c983e | |
parent | 928394cc326a2ce79d057b484c944943a379229f (diff) | |
download | garage-fdfe7dd60dc78ec63d109d2c0fd3e5a36c5409b2.tar.gz garage-fdfe7dd60dc78ec63d109d2c0fd3e5a36c5409b2.zip |
Fix clippy lint
-rw-r--r-- | src/block/manager.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/block/manager.rs b/src/block/manager.rs index 4a595cc8..27f51ff8 100644 --- a/src/block/manager.rs +++ b/src/block/manager.rs @@ -738,7 +738,7 @@ impl Worker for ResyncWorker { if elen > 0 { ret.push(format!("{} blocks in error state", elen)); } - if ret.len() > 0 { + if !ret.is_empty() { Some(ret.join(", ")) } else { None |