Monomorphize generic types #1330
build_test_fmt.yml
on: pull_request
coding-style
6s
build-without-warnings
11s
tests
28s
Annotations
3 errors
called `map(f)` on an `Option` value where `f` is a closure that returns the unit type `()`:
fir/src/iter/tree_like.rs#L199
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) }
|
|
build-without-warnings
Process completed with exit code 101.
|
tests
Process completed with exit code 101.
|