diff options
Diffstat (limited to 'crates/ra_assists/src/ast_transform.rs')
-rw-r--r-- | crates/ra_assists/src/ast_transform.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/ast_transform.rs b/crates/ra_assists/src/ast_transform.rs index cbddc50ac..eac2903d1 100644 --- a/crates/ra_assists/src/ast_transform.rs +++ b/crates/ra_assists/src/ast_transform.rs | |||
@@ -173,7 +173,7 @@ impl<'a, DB: HirDatabase> AstTransform<'a> for QualifyPaths<'a, DB> { | |||
173 | } | 173 | } |
174 | } | 174 | } |
175 | 175 | ||
176 | fn path_to_ast(path: hir::ModPath) -> ast::Path { | 176 | pub(crate) fn path_to_ast(path: hir::ModPath) -> ast::Path { |
177 | let parse = ast::SourceFile::parse(&path.to_string()); | 177 | let parse = ast::SourceFile::parse(&path.to_string()); |
178 | parse.tree().syntax().descendants().find_map(ast::Path::cast).unwrap() | 178 | parse.tree().syntax().descendants().find_map(ast::Path::cast).unwrap() |
179 | } | 179 | } |