Skip to content

Commit 7acb8f8

Browse files
committed
Fix codes that fails dogfood
1 parent 4e23477 commit 7acb8f8

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,14 +922,14 @@ fn check_wild_err_arm(cx: &LateContext<'_>, ex: &Expr<'_>, 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('_') && !LocalUsedVisitor::new(id).check_expr(arm.body) {
928928
ident_bind_name = (&ident.name.as_str()).to_string();
929929
matching_wild = true;
930930
}
931931
}
932-
});
932+
}
933933
}
934934
if_chain! {
935935
if matching_wild;

0 commit comments

Comments
 (0)