mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
fill match arms with empty block rather than unit tuple
This commit is contained in:
parent
f9494f1147
commit
7ba934fe58
3 changed files with 50 additions and 47 deletions
|
@ -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!()")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue