Monomorphize generic types #1330
GitHub Actions / clippy
failed
Dec 2, 2024 in 0s
clippy
1 error
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 1 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.83.0 (90b35a623 2024-11-26)
- cargo 1.83.0 (5ffbef321 2024-10-29)
- clippy 0.1.83 (90b35a6 2024-11-26)
Annotations
Check failure on line 201 in fir/src/iter/tree_like.rs
github-actions / clippy
called `map(f)` on an `Option` value where `f` is a closure that returns the unit type `()`
error: called `map(f)` on an `Option` value where `f` is a closure that returns the unit type `()`
--> fir/src/iter/tree_like.rs:199:9
|
199 | / fir.nodes
200 | | .last_key_value()
201 | | .map(|last| self.visit(fir, last.0));
| |________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_map_unit_fn
= note: `-D clippy::option-map-unit-fn` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::option_map_unit_fn)]`
help: try
|
199 ~ if let Some(last) = fir.nodes
200 + .last_key_value() { self.visit(fir, last.0) }
|
Loading