aboutsummaryrefslogtreecommitdiff
path: root/src/block/manager.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-27 12:01:23 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-27 12:01:23 +0200
commitfdfe7dd60dc78ec63d109d2c0fd3e5a36c5409b2 (patch)
treeebee1fd4956da8deeb6f0b0b0b8a0d44259c983e /src/block/manager.rs
parent928394cc326a2ce79d057b484c944943a379229f (diff)
downloadgarage-fdfe7dd60dc78ec63d109d2c0fd3e5a36c5409b2.tar.gz
garage-fdfe7dd60dc78ec63d109d2c0fd3e5a36c5409b2.zip
Fix clippy lint
Diffstat (limited to 'src/block/manager.rs')
-rw-r--r--src/block/manager.rs2
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