avoid some clippy warnings

This commit is contained in:
Dietmar Maurer committed 2019-10-25 18:04:37 +02:00
1 parent 9fe2f639b8
commit 11377a47bb
7 files changed
+33 -39

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ fn dump_journal(
Ok(line) => {
count += 1;
if count < start { continue };
if limit <= 0 { continue };
if limit == 0 { continue };
lines.push(json!({ "n": count, "t": line }));
+1 -1
View File
@@ -75,7 +75,7 @@ fn read_task_log(
Ok(line) => {
count += 1;
if count < start { continue };
if limit <= 0 { continue };
if limit == 0 { continue };
lines.push(json!({ "n": count, "t": line }));