We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f528d2 commit 0146770Copy full SHA for 0146770
clippy_lints/src/loops/manual_flatten.rs
@@ -37,9 +37,7 @@ pub(super) fn check<'tcx>(
37
// Ensure expr in `if let` is not used afterwards
38
&& !is_local_used(cx, if_then, pat_hir_id)
39
&& msrv.meets(cx, msrvs::ITER_FLATTEN)
40
- && pats.iter().all(|pat| {
41
- !is_refutable(cx, pat)
42
- })
+ && !is_refutable(cx, inner_pat)
43
{
44
let if_let_type = if some_ctor { "Some" } else { "Ok" };
45
// Prepare the error message
0 commit comments