Merge branch 'main' of github.com:paradigmxyz/cryo #6
build_and_test.yml
on: push
build
7m 13s
code lint
1m 2s
Annotations
2 warnings
the borrowed expression implements the required traits:
crates/cli/src/summaries.rs#L50
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
|
called `map(..).flatten()` on `Iterator`:
crates/freeze/src/chunks.rs#L44
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
|