avoid some clippy warnings
This commit is contained in:
1 parent
9fe2f639b8
commit
11377a47bb
7 files changed
+33
-39
No files matched your search
@@ -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 }));
|
||||
|
||||
|
||||
@@ -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 }));
|
||||
|
||||
|
||||
Reference in new issue
Block a user