Skip to content

Commit 9a701ca

Browse files
committed
Fix codes that fails dogfood
1 parent c5a1a35 commit 9a701ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/matches.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ fn check_wild_err_arm<'tcx>(cx: &LateContext<'tcx>, ex: &Expr<'tcx>, arms: &[Arm
922922
let mut ident_bind_name = String::from("_");
923923
if !matching_wild {
924924
// Looking for unused bindings (i.e.: `_e`)
925-
inner.iter().for_each(|pat| {
925+
for pat in inner.iter() {
926926
if let PatKind::Binding(_, id, ident, None) = pat.kind {
927927
if ident.as_str().starts_with('_')
928928
&& !LocalUsedVisitor::new(cx, id).check_expr(arm.body)
@@ -931,7 +931,7 @@ fn check_wild_err_arm<'tcx>(cx: &LateContext<'tcx>, ex: &Expr<'tcx>, arms: &[Arm
931931
matching_wild = true;
932932
}
933933
}
934-
});
934+
}
935935
}
936936
if_chain! {
937937
if matching_wild;

0 commit comments

Comments
 (0)