diff options
author | Josh Mcguigan <[email protected]> | 2020-03-24 02:23:30 +0000 |
---|---|---|
committer | Josh Mcguigan <[email protected]> | 2020-03-24 02:23:30 +0000 |
commit | 7ba934fe5866e6aedd8d18e95f8c54e17e18ea51 (patch) | |
tree | 75f5ed463bcced84e4644b96ec080fdf7972ac26 /crates/ra_syntax/src | |
parent | f9494f114798f66b5f2174cf518a2951a82571d3 (diff) |
fill match arms with empty block rather than unit tuple
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/ast/make.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/ast/make.rs b/crates/ra_syntax/src/ast/make.rs index 9257ccd1a..1145b69e8 100644 --- a/crates/ra_syntax/src/ast/make.rs +++ b/crates/ra_syntax/src/ast/make.rs | |||
@@ -87,6 +87,9 @@ pub fn block_from_expr(e: ast::Expr) -> ast::Block { | |||
87 | pub fn expr_unit() -> ast::Expr { | 87 | pub fn expr_unit() -> ast::Expr { |
88 | expr_from_text("()") | 88 | expr_from_text("()") |
89 | } | 89 | } |
90 | pub fn expr_empty_block() -> ast::Expr { | ||
91 | expr_from_text("{}") | ||
92 | } | ||
90 | pub fn expr_unimplemented() -> ast::Expr { | 93 | pub fn expr_unimplemented() -> ast::Expr { |
91 | expr_from_text("unimplemented!()") | 94 | expr_from_text("unimplemented!()") |
92 | } | 95 | } |