aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast/make.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/ast/make.rs')
-rw-r--r--crates/ra_syntax/src/ast/make.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast/make.rs b/crates/ra_syntax/src/ast/make.rs
index 492088353..b9a396cad 100644
--- a/crates/ra_syntax/src/ast/make.rs
+++ b/crates/ra_syntax/src/ast/make.rs
@@ -82,10 +82,10 @@ pub fn block_expr(
82 ast_from_text(&format!("fn f() {}", buf)) 82 ast_from_text(&format!("fn f() {}", buf))
83} 83}
84 84
85pub fn block_from_expr(e: ast::Expr) -> ast::Block { 85pub fn block_from_expr(e: ast::Expr) -> ast::BlockExpr {
86 return from_text(&format!("{{ {} }}", e)); 86 return from_text(&format!("{{ {} }}", e));
87 87
88 fn from_text(text: &str) -> ast::Block { 88 fn from_text(text: &str) -> ast::BlockExpr {
89 ast_from_text(&format!("fn f() {}", text)) 89 ast_from_text(&format!("fn f() {}", text))
90 } 90 }
91} 91}