mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
5262ab2416
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