aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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