rust/clippy_lints
Samuel Tardieu 5262ab2416
Fix unnecessary_unwrap emitted twice in closure (#14763) (#14770)
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
2025-05-10 14:15:50 +00:00
..
src Fix unnecessary_unwrap emitted twice in closure (#14763) (#14770) 2025-05-10 14:15:50 +00:00
Cargo.toml Merge commit '0621446356' into clippy-subtree-update 2025-04-22 18:24:43 +02:00
README.md clippy_lints: readme: don't mention crates.io since it is no longer used to publish clippy. 2020-03-10 01:05:54 +01:00

This crate contains Clippy lints. For the main crate, check GitHub.