fix tests #2494
GitHub Actions / clippy
succeeded
Sep 21, 2025 in 0s
clippy
2 warnings
Details
Results
| Message level | Amount |
|---|---|
| Internal compiler error | 0 |
| Error | 0 |
| Warning | 2 |
| Note | 0 |
| Help | 0 |
Versions
- rustc 1.92.0-nightly (0be8e1608 2025-09-19)
- cargo 1.92.0-nightly (966f94733 2025-09-16)
- clippy 0.1.92 (0be8e16088 2025-09-19)
Annotations
Check warning on line 144 in azalea-core/src/bitset.rs
github-actions / clippy
struct `BitSet` has a public `len` method, but no `is_empty` method
warning: struct `BitSet` has a public `len` method, but no `is_empty` method
--> azalea-core/src/bitset.rs:144:5
|
144 | pub fn len(&self) -> usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
= note: `#[warn(clippy::len_without_is_empty)]` on by default
Check warning on line 137 in azalea-core/src/bitset.rs
github-actions / clippy
this `.filter_map(..)` can be written more simply using `.filter(..)`
warning: this `.filter_map(..)` can be written more simply using `.filter(..)`
--> azalea-core/src/bitset.rs:137:9
|
137 | (0..self.len()).filter_map(|i| if self.index(i) { Some(i) } else { None })
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_filter_map
= note: `#[warn(clippy::unnecessary_filter_map)]` on by default
Loading