rollup match
@@ -1459,13 +1459,10 @@ fn make_body(
.collect();
let mut tail_expr = match &elements.last() {
- Some(element) => match element {
- syntax::NodeOrToken::Node(node) if ast::Expr::can_cast(node.kind()) => {
+ Some(syntax::NodeOrToken::Node(node)) if ast::Expr::can_cast(node.kind()) => {
ast::Expr::cast(node.clone())
}
_ => None,
- },
- _ => None,
};
match tail_expr {
