]> git.lizzy.rs Git - rust.git/blobdiff - clippy_utils/src/higher.rs
Update TypeVisitor paths
[rust.git] / clippy_utils / src / higher.rs
index 1e0fc789af24306beaea24a7823acac6ca2dca8a..4604ae5c2c7f0486bbfda4424a5a6070a6534a6d 100644 (file)
@@ -35,7 +35,7 @@ pub fn hir(expr: &Expr<'tcx>) -> Option<Self> {
             if let hir::ExprKind::Match(iterexpr, [arm], hir::MatchSource::ForLoopDesugar) = e.kind;
             if let hir::ExprKind::Call(_, [arg]) = iterexpr.kind;
             if let hir::ExprKind::Loop(block, ..) = arm.body.kind;
-            if let [stmt] = &*block.stmts;
+            if let [stmt] = block.stmts;
             if let hir::StmtKind::Expr(e) = stmt.kind;
             if let hir::ExprKind::Match(_, [_, some_arm], _) = e.kind;
             if let hir::PatKind::Struct(_, [field], _) = some_arm.pat.kind;