about summary refs log tree commit diff
path: root/clippy_utils/src/higher.rs
diff options
context:
space:
mode:
Diffstat (limited to 'clippy_utils/src/higher.rs')
-rw-r--r--clippy_utils/src/higher.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/clippy_utils/src/higher.rs b/clippy_utils/src/higher.rs
index 05a4a014319..94b3cd371bd 100644
--- a/clippy_utils/src/higher.rs
+++ b/clippy_utils/src/higher.rs
@@ -105,8 +105,7 @@ impl<'hir> IfLet<'hir> {
             if_else,
         ) = expr.kind
         {
-            let hir = cx.tcx.hir();
-            let mut iter = hir.parent_iter(expr.hir_id);
+            let mut iter = cx.tcx.hir().parent_iter(expr.hir_id);
             if let Some((_, Node::Block(Block { stmts: [], .. }))) = iter.next() {
                 if let Some((
                     _,