Skip to content

Monomorphize generic types #669

Monomorphize generic types

Monomorphize generic types #669

GitHub Actions / clippy failed Sep 30, 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.81.0 (eeb90cda1 2024-09-04)
  • cargo 1.81.0 (2dbb1af80 2024-08-20)
  • clippy 0.1.81 (eeb90cd 2024-09-04)

Annotations

Check failure on line 201 in fir/src/iter/tree_like.rs

See this annotation in the file changed.

@github-actions 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) }
    |