Reduce path_from_text usage

This commit is contained in:
Aleksey Kladov 2020-08-31 15:47:42 +02:00
parent 60706fca8e
commit b1f59ff6c1
2 changed files with 18 additions and 13 deletions

View file

@ -33,6 +33,7 @@ pub fn path_unqualified(segment: ast::PathSegment) -> ast::Path {
pub fn path_qualified(qual: ast::Path, segment: ast::PathSegment) -> ast::Path {
path_from_text(&format!("{}::{}", qual, segment))
}
// FIXME: make this private
pub fn path_from_text(text: &str) -> ast::Path {
ast_from_text(text)
}