From facad9943d349220789073a906b5251e023c4f2a Mon Sep 17 00:00:00 2001 From: Sam Mohr Date: Tue, 29 Oct 2024 20:30:27 -0700 Subject: [PATCH] Fix clippy issue --- crates/compiler/can/src/expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/compiler/can/src/expr.rs b/crates/compiler/can/src/expr.rs index 349f6339c5..50cd40253a 100644 --- a/crates/compiler/can/src/expr.rs +++ b/crates/compiler/can/src/expr.rs @@ -1654,7 +1654,7 @@ fn canonicalize_closure_body<'a>( let mut final_expr = &loc_body_expr; while let Expr::LetRec(_, inner, _) | Expr::LetNonRec(_, inner) = &final_expr.value { - final_expr = &*inner; + final_expr = inner; } if let Expr::Return { return_value, .. } = &final_expr.value {