avoid some clippy warnings
This commit is contained in:
@ -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