]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/mut_mut.rs
add `tcx` to `fn walk`
[rust.git] / clippy_lints / src / mut_mut.rs
index d5032c5ba7f293e2f5148daeb25481409aeed3fa..610152a217f1e3dac93028b9b41a945f37b92468 100644 (file)
@@ -53,7 +53,7 @@ fn visit_expr(&mut self, expr: &'tcx hir::Expr<'_>) {
             return;
         }
 
-        if let Some((_, arg, body, _)) = higher::for_loop(expr) {
+        if let Some(higher::ForLoop { arg, body, .. }) = higher::ForLoop::hir(expr) {
             // A `for` loop lowers to:
             // ```rust
             // match ::std::iter::Iterator::next(&mut iter) {