Skip to content

Commit

Permalink
Fix clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
smores56 committed Oct 30, 2024
1 parent 755ff16 commit facad99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/compiler/can/src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit facad99

Please sign in to comment.