Skip to content

Commit c4bb16b

Browse files
committed
style: fix clippy warning.
1 parent f301811 commit c4bb16b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

cli/src/walk.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,8 @@ impl<'a> ParWalker<'a> {
475475
);
476476
let t_active = start_time.elapsed();
477477

478-
if let Some(limit) = cpu_limit {
479-
if limit < 100 {
478+
if let Some(limit) = cpu_limit
479+
&& limit < 100 {
480480
// Calculate the required sleep duration to limit
481481
// CPU usage to the target percentage.
482482
//
@@ -495,7 +495,6 @@ impl<'a> ParWalker<'a> {
495495
thread::sleep(t_sleep);
496496
}
497497
}
498-
}
499498

500499
if let Err(err) = res
501500
&& error(err, &msg_send).is_err()

0 commit comments

Comments
 (0)