avoid some clippy warnings

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

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 }));

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 }));