diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2021-08-19 13:31:25 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2021-08-19 14:17:05 -0500 |
| commit | ae02282ad0296d868a1e7d63d605834e311bb80f (patch) | |
| tree | 45e5e04242d6b73b8ffb4e48a2ad92e0c238ac4b /clippy_lints/src/loops/while_let_loop.rs | |
| parent | 4123fedac5e0315a7f462d870d2ce2c5563d07e1 (diff) | |
Fix clippy let expressions fallout
Diffstat (limited to 'clippy_lints/src/loops/while_let_loop.rs')
| -rw-r--r-- | clippy_lints/src/loops/while_let_loop.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/loops/while_let_loop.rs b/clippy_lints/src/loops/while_let_loop.rs index 6be410ca8e3..d6d3315e0a8 100644 --- a/clippy_lints/src/loops/while_let_loop.rs +++ b/clippy_lints/src/loops/while_let_loop.rs @@ -17,7 +17,7 @@ pub(super) fn check(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, loop_block: &' let_expr, if_else: Some(if_else), .. - }) = higher::IfLet::hir(inner) + }) = higher::IfLet::hir(cx, inner) { if is_simple_break_expr(if_else) { could_be_while_let(cx, expr, let_pat, let_expr); |
