diff options
author | Aleksey Kladov <[email protected]> | 2020-08-31 14:47:42 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-08-31 14:47:42 +0100 |
commit | b1f59ff6c1dcb88f75e999324d6bb95dfdb78da3 (patch) | |
tree | 1e1420034351cee24f789d9398ec029b7a506f33 /crates/syntax/src/ast | |
parent | 60706fca8e6187e0abf322c4c144ccb19fec1ae7 (diff) |
Reduce path_from_text usage
Diffstat (limited to 'crates/syntax/src/ast')
-rw-r--r-- | crates/syntax/src/ast/make.rs | 1 |
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 { | |||
33 | pub fn path_qualified(qual: ast::Path, segment: ast::PathSegment) -> ast::Path { | 33 | pub 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 | ||
36 | pub fn path_from_text(text: &str) -> ast::Path { | 37 | pub fn path_from_text(text: &str) -> ast::Path { |
37 | ast_from_text(text) | 38 | ast_from_text(text) |
38 | } | 39 | } |