Skip to content

Commit

Permalink
Introduce hir::ExprKind::Let - Take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
c410-f3r committed Aug 15, 2021
1 parent 2323cbc commit 64bf8df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ struct ControlFlow<'a> {

fn extract_pats_and_cond(expr: &ast::Expr) -> (Option<&ast::Pat>, &ast::Expr) {
match expr.kind {
ast::ExprKind::Let(ref pat, ref cond) => (Some(pat), cond),
ast::ExprKind::Let(ref pat, ref cond, _) => (Some(pat), cond),
_ => (None, expr),
}
}
Expand Down

0 comments on commit 64bf8df

Please sign in to comment.