Put 'if let' back into comment.
This commit is contained in:
parent
0373b007da
commit
46a0e54361
@ -245,7 +245,7 @@ fn is_block(expr: &ast::Expr) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
/// Match `if` expressions and return the `then` and `else` block.
|
||||
/// Match `if` or `if let` expressions and return the `then` and `else` block.
|
||||
fn unsugar_if(expr: &ast::Expr) -> Option<(&P<ast::Block>, &Option<P<ast::Expr>>)> {
|
||||
match expr.node {
|
||||
ast::ExprKind::If(_, ref then, ref else_) => Some((then, else_)),
|
||||
|
Loading…
Reference in New Issue
Block a user