aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-09-25 13:58:40 +0100
committerAleksey Kladov <[email protected]>2019-09-25 13:58:40 +0100
commitefeae82f5221d2fdeeeed0bc67a2234647e160dd (patch)
treea836a030fb899cfcff96e08fa37420560a160133 /crates/ra_assists
parent98639d835c7d37724b67f1ebd30c99bc2c3d8478 (diff)
clean up naming
Diffstat (limited to 'crates/ra_assists')
-rw-r--r--crates/ra_assists/src/ast_builder.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/ast_builder.rs b/crates/ra_assists/src/ast_builder.rs
index f6409085a..9a62b96b3 100644
--- a/crates/ra_assists/src/ast_builder.rs
+++ b/crates/ra_assists/src/ast_builder.rs
@@ -44,7 +44,7 @@ impl Make<ast::Expr> {
44} 44}
45 45
46impl Make<ast::NameRef> { 46impl Make<ast::NameRef> {
47 pub fn new(text: &str) -> ast::NameRef { 47 pub fn from(text: &str) -> ast::NameRef {
48 ast_node_from_file_text(&format!("fn f() {{ {}; }}", text)) 48 ast_node_from_file_text(&format!("fn f() {{ {}; }}", text))
49 } 49 }
50} 50}