GitHub Actions / clippy
succeeded
Dec 21, 2023 in 1s
clippy
1 warning
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 1 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.76.0-nightly (5ac4c8a63 2023-12-20)
- cargo 1.76.0-nightly (1a2666ddd 2023-12-17)
- clippy 0.1.76 (5ac4c8a 2023-12-20)
Annotations
Check warning on line 53 in azalea/src/pathfinder/extras/process/mine_forever.rs
github-actions / clippy
this `if` statement can be collapsed
warning: this `if` statement can be collapsed
--> azalea/src/pathfinder/extras/process/mine_forever.rs:47:5
|
47 | / if !pathfinder.is_calculating {
48 | | if !**items_to_pickup_change_acknowledged {
49 | | should_force_recalculate_path = true;
50 | | **items_to_pickup_change_acknowledged = true;
51 | | println!("items_to_pickup_change_acknowledged = true");
52 | | }
53 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `#[warn(clippy::collapsible_if)]` on by default
help: collapse nested if block
|
47 ~ if !pathfinder.is_calculating && !**items_to_pickup_change_acknowledged {
48 + should_force_recalculate_path = true;
49 + **items_to_pickup_change_acknowledged = true;
50 + println!("items_to_pickup_change_acknowledged = true");
51 + }
|
Loading