Put 'if let' back into comment.
This commit is contained in:
parent
0373b007da
commit
46a0e54361
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue