diff --git a/clippy_lints/src/if_let_mutex.rs b/clippy_lints/src/if_let_mutex.rs index 83c1bce39854..4f0681c4adea 100644 --- a/clippy_lints/src/if_let_mutex.rs +++ b/clippy_lints/src/if_let_mutex.rs @@ -139,8 +139,7 @@ impl<'tcx, 'l> Visitor<'tcx> for ArmVisitor<'tcx, 'l> { self.visit_expr(expr) } }, - StmtKind::Expr(expr) => self.visit_expr(expr), - StmtKind::Semi(expr) => self.visit_expr(expr), + StmtKind::Expr(expr) | StmtKind::Semi(expr) => self.visit_expr(expr), // we don't care about `Item` _ => {}, }