From b73dbbfbf2cad646eb3f8e3342a1c390a874dc53 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 2 May 2020 11:50:43 +0200 Subject: Add missing members generates indented blocks --- crates/ra_syntax/src/ast/make.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'crates/ra_syntax/src/ast') diff --git a/crates/ra_syntax/src/ast/make.rs b/crates/ra_syntax/src/ast/make.rs index b9a396cad..7b17fef49 100644 --- a/crates/ra_syntax/src/ast/make.rs +++ b/crates/ra_syntax/src/ast/make.rs @@ -82,14 +82,6 @@ pub fn block_expr( ast_from_text(&format!("fn f() {}", buf)) } -pub fn block_from_expr(e: ast::Expr) -> ast::BlockExpr { - return from_text(&format!("{{ {} }}", e)); - - fn from_text(text: &str) -> ast::BlockExpr { - ast_from_text(&format!("fn f() {}", text)) - } -} - pub fn expr_unit() -> ast::Expr { expr_from_text("()") } -- cgit v1.2.3