diff options
Diffstat (limited to 'crates/ra_ide_api/src/lib.rs')
-rw-r--r-- | crates/ra_ide_api/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs index 6155d903a..abb50ff95 100644 --- a/crates/ra_ide_api/src/lib.rs +++ b/crates/ra_ide_api/src/lib.rs | |||
@@ -35,7 +35,7 @@ mod parent_module; | |||
35 | 35 | ||
36 | use std::{fmt, sync::Arc}; | 36 | use std::{fmt, sync::Arc}; |
37 | 37 | ||
38 | use ra_syntax::{SourceFile, TreePtr, TextRange, TextUnit}; | 38 | use ra_syntax::{SourceFile, TreeArc, TextRange, TextUnit}; |
39 | use ra_text_edit::TextEdit; | 39 | use ra_text_edit::TextEdit; |
40 | use ra_db::{SyntaxDatabase, FilesDatabase, BaseDatabase}; | 40 | use ra_db::{SyntaxDatabase, FilesDatabase, BaseDatabase}; |
41 | use rayon::prelude::*; | 41 | use rayon::prelude::*; |
@@ -303,7 +303,7 @@ impl Analysis { | |||
303 | } | 303 | } |
304 | 304 | ||
305 | /// Gets the syntax tree of the file. | 305 | /// Gets the syntax tree of the file. |
306 | pub fn file_syntax(&self, file_id: FileId) -> TreePtr<SourceFile> { | 306 | pub fn file_syntax(&self, file_id: FileId) -> TreeArc<SourceFile> { |
307 | self.db.source_file(file_id).clone() | 307 | self.db.source_file(file_id).clone() |
308 | } | 308 | } |
309 | 309 | ||