Skip to content

Commit 64bf8df

Browse files
committed
Introduce hir::ExprKind::Let - Take 2
1 parent 2323cbc commit 64bf8df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ struct ControlFlow<'a> {
616616

617617
fn extract_pats_and_cond(expr: &ast::Expr) -> (Option<&ast::Pat>, &ast::Expr) {
618618
match expr.kind {
619-
ast::ExprKind::Let(ref pat, ref cond) => (Some(pat), cond),
619+
ast::ExprKind::Let(ref pat, ref cond, _) => (Some(pat), cond),
620620
_ => (None, expr),
621621
}
622622
}

0 commit comments

Comments
 (0)