The problem is that `check_fn` is triggered by both function and closure, and `visit_expr` can visit expressions in another closures within a function or closure. So just skip walking in a inner closure. changelog: Fix [`unnecessary_unwrap`] emitted twice in closure which inside in a function or another closure. Fixes: rust-lang/rust-clippy#14763 |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||