]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/matches/redundant_pattern_match.rs
Rollup merge of #101422 - mkroening:hermit-file-time, r=joshtriplett
[rust.git] / src / tools / clippy / clippy_lints / src / matches / redundant_pattern_match.rs
index 8499e050af2426898ede4a71210d0a4ef8451785..f7443471e31dda274d656766223512c64de39ccb 100644 (file)
@@ -120,7 +120,7 @@ fn find_sugg_for_if_let<'tcx>(
     // check that `while_let_on_iterator` lint does not trigger
     if_chain! {
         if keyword == "while";
-        if let ExprKind::MethodCall(method_path, _, _) = let_expr.kind;
+        if let ExprKind::MethodCall(method_path, ..) = let_expr.kind;
         if method_path.ident.name == sym::next;
         if is_trait_method(cx, let_expr, sym::Iterator);
         then {