From fdfe7dd60dc78ec63d109d2c0fd3e5a36c5409b2 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 27 Jun 2022 12:01:23 +0200 Subject: Fix clippy lint --- src/block/manager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/block/manager.rs') 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 -- cgit v1.2.3