GitHub Actions / clippy
succeeded
Jul 3, 2023 in 1s
clippy
2 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 2 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.72.0-nightly (6162f6f12 2023-07-01)
- cargo 1.72.0-nightly (5b377cece 2023-06-30)
- clippy 0.1.72 (6162f6f 2023-07-01)
Annotations
Check warning on line 50 in crates/cli/src/summaries.rs
github-actions / clippy
the borrowed expression implements the required traits
warning: the borrowed expression implements the required traits
--> crates/cli/src/summaries.rs:50:9
|
50 | &opts.block_chunks.total_blocks().separate_with_commas(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `opts.block_chunks.total_blocks().separate_with_commas()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
Check warning on line 44 in crates/freeze/src/chunks.rs
github-actions / clippy
called `map(..).flatten()` on `Iterator`
warning: called `map(..).flatten()` on `Iterator`
--> crates/freeze/src/chunks.rs:44:21
|
44 | self.iter().map(|chunk| chunk.numbers()).flatten().collect()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try replacing `map` with `flat_map` and remove the `.flatten()`: `flat_map(|chunk| chunk.numbers())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten
= note: `#[warn(clippy::map_flatten)]` on by default
Loading