fix pickable entity query #2497
GitHub Actions / clippy
succeeded
Sep 21, 2025 in 0s
clippy
1 warning
Details
Results
| Message level | Amount |
|---|---|
| Internal compiler error | 0 |
| Error | 0 |
| Warning | 1 |
| Note | 0 |
| Help | 0 |
Versions
- rustc 1.92.0-nightly (dd7fda570 2025-09-20)
- cargo 1.92.0-nightly (966f94733 2025-09-16)
- clippy 0.1.92 (dd7fda5700 2025-09-20)
Annotations
Check warning on line 175 in azalea-client/src/plugins/interact/pick.rs
github-actions / clippy
this if-then-else expression returns a bool literal
warning: this if-then-else expression returns a bool literal
--> azalea-client/src/plugins/interact/pick.rs:169:13
|
169 | / if armor_stand_marker == Some(&ArmorStandMarker(true))
170 | | || arrow_in_ground == Some(&InGround(true))
171 | | {
172 | | false
173 | | } else {
174 | | true
175 | | }
| |_____________^ help: you can reduce it to: `!(armor_stand_marker == Some(&ArmorStandMarker(true)) || arrow_in_ground == Some(&InGround(true)))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool
= note: `#[warn(clippy::needless_bool)]` on by default
Loading