fill match arms with empty block rather than unit tuple

This commit is contained in:
Josh Mcguigan 2020-03-23 19:23:30 -07:00
parent f9494f1147
commit 7ba934fe58
3 changed files with 50 additions and 47 deletions

View file

@ -87,6 +87,9 @@ pub fn block_from_expr(e: ast::Expr) -> ast::Block {
pub fn expr_unit() -> ast::Expr {
expr_from_text("()")
}
pub fn expr_empty_block() -> ast::Expr {
expr_from_text("{}")
}
pub fn expr_unimplemented() -> ast::Expr {
expr_from_text("unimplemented!()")
}