Skip to content

Commit 3095253

Browse files
committed
Fix codes that fails dogfood
1 parent 5029dc8 commit 3095253

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
@@ -924,7 +924,7 @@ fn check_wild_err_arm<'tcx>(cx: &LateContext<'tcx>, ex: &Expr<'tcx>, arms: &[Arm
924924
let mut ident_bind_name = String::from("_");
925925
if !matching_wild {
926926
// Looking for unused bindings (i.e.: `_e`)
927-
inner.iter().for_each(|pat| {
927+
for pat in inner.iter() {
928928
if let PatKind::Binding(_, id, ident, None) = pat.kind {
929929
if ident.as_str().starts_with('_')
930930
&& !LocalUsedVisitor::new(cx, id).check_expr(arm.body)
@@ -933,7 +933,7 @@ fn check_wild_err_arm<'tcx>(cx: &LateContext<'tcx>, ex: &Expr<'tcx>, arms: &[Arm
933933
matching_wild = true;
934934
}
935935
}
936-
});
936+
}
937937
}
938938
if_chain! {
939939
if matching_wild;

0 commit comments

Comments
 (0)