aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/src/ast/make.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-08-31 14:47:42 +0100
committerAleksey Kladov <[email protected]>2020-08-31 14:47:42 +0100
commitb1f59ff6c1dcb88f75e999324d6bb95dfdb78da3 (patch)
tree1e1420034351cee24f789d9398ec029b7a506f33 /crates/syntax/src/ast/make.rs
parent60706fca8e6187e0abf322c4c144ccb19fec1ae7 (diff)
Reduce path_from_text usage
Diffstat (limited to 'crates/syntax/src/ast/make.rs')
-rw-r--r--crates/syntax/src/ast/make.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/syntax/src/ast/make.rs b/crates/syntax/src/ast/make.rs
index a83f76857..c2c938ad1 100644
--- a/crates/syntax/src/ast/make.rs
+++ b/crates/syntax/src/ast/make.rs
@@ -33,6 +33,7 @@ pub fn path_unqualified(segment: ast::PathSegment) -> ast::Path {
33pub fn path_qualified(qual: ast::Path, segment: ast::PathSegment) -> ast::Path { 33pub fn path_qualified(qual: ast::Path, segment: ast::PathSegment) -> ast::Path {
34 path_from_text(&format!("{}::{}", qual, segment)) 34 path_from_text(&format!("{}::{}", qual, segment))
35} 35}
36// FIXME: make this private
36pub fn path_from_text(text: &str) -> ast::Path { 37pub fn path_from_text(text: &str) -> ast::Path {
37 ast_from_text(text) 38 ast_from_text(text)
38} 39}