minor
This commit is contained in:
parent
5c594bcb48
commit
a6df224f7d
1 changed files with 1 additions and 5 deletions
|
@ -564,11 +564,7 @@ where
|
||||||
.else_branch()
|
.else_branch()
|
||||||
.map(|b| match b {
|
.map(|b| match b {
|
||||||
ast::ElseBranch::Block(it) => self.collect_block(it),
|
ast::ElseBranch::Block(it) => self.collect_block(it),
|
||||||
ast::ElseBranch::IfExpr(elif) => {
|
ast::ElseBranch::IfExpr(elif) => self.collect_expr(elif.into()),
|
||||||
let expr: ast::Expr =
|
|
||||||
ast::Expr::cast(elif.syntax().clone()).unwrap();
|
|
||||||
self.collect_expr(expr)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
.unwrap_or_else(|| self.empty_block());
|
.unwrap_or_else(|| self.empty_block());
|
||||||
let placeholder_pat = self.pats.alloc(Pat::Missing);
|
let placeholder_pat = self.pats.alloc(Pat::Missing);
|
||||||
|
|
Loading…
Add table
Reference in a new issue