diff options
Diffstat (limited to 'crates/ra_analysis/src/roots.rs')
-rw-r--r-- | crates/ra_analysis/src/roots.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crates/ra_analysis/src/roots.rs b/crates/ra_analysis/src/roots.rs index 32a8c5bd0..208acc4c2 100644 --- a/crates/ra_analysis/src/roots.rs +++ b/crates/ra_analysis/src/roots.rs | |||
@@ -9,7 +9,7 @@ use rustc_hash::FxHashMap; | |||
9 | use ra_editor::LineIndex; | 9 | use ra_editor::LineIndex; |
10 | use ra_syntax::File; | 10 | use ra_syntax::File; |
11 | 11 | ||
12 | use { | 12 | use crate::{ |
13 | FileId, | 13 | FileId, |
14 | imp::FileResolverImp, | 14 | imp::FileResolverImp, |
15 | symbol_index::SymbolIndex, | 15 | symbol_index::SymbolIndex, |
@@ -62,23 +62,23 @@ impl WritableSourceRoot { | |||
62 | 62 | ||
63 | impl SourceRoot for WritableSourceRoot { | 63 | impl SourceRoot for WritableSourceRoot { |
64 | fn module_tree(&self) -> Arc<ModuleTreeDescriptor> { | 64 | fn module_tree(&self) -> Arc<ModuleTreeDescriptor> { |
65 | self.db.make_query(::module_map::module_tree) | 65 | self.db.make_query(crate::module_map::module_tree) |
66 | } | 66 | } |
67 | 67 | ||
68 | fn contains(&self, file_id: FileId) -> bool { | 68 | fn contains(&self, file_id: FileId) -> bool { |
69 | self.db.state().file_map.contains_key(&file_id) | 69 | self.db.state().file_map.contains_key(&file_id) |
70 | } | 70 | } |
71 | fn lines(&self, file_id: FileId) -> Arc<LineIndex> { | 71 | fn lines(&self, file_id: FileId) -> Arc<LineIndex> { |
72 | self.db.make_query(|ctx| ::queries::file_lines(ctx, file_id)) | 72 | self.db.make_query(|ctx| crate::queries::file_lines(ctx, file_id)) |
73 | } | 73 | } |
74 | fn syntax(&self, file_id: FileId) -> File { | 74 | fn syntax(&self, file_id: FileId) -> File { |
75 | self.db.make_query(|ctx| ::queries::file_syntax(ctx, file_id)) | 75 | self.db.make_query(|ctx| crate::queries::file_syntax(ctx, file_id)) |
76 | } | 76 | } |
77 | fn symbols<'a>(&'a self, acc: &mut Vec<Arc<SymbolIndex>>) { | 77 | fn symbols<'a>(&'a self, acc: &mut Vec<Arc<SymbolIndex>>) { |
78 | self.db.make_query(|ctx| { | 78 | self.db.make_query(|ctx| { |
79 | let file_set = ::queries::file_set(ctx); | 79 | let file_set = crate::queries::file_set(ctx); |
80 | let syms = file_set.0.iter() | 80 | let syms = file_set.0.iter() |
81 | .map(|file_id| ::queries::file_symbols(ctx, *file_id)); | 81 | .map(|file_id| crate::queries::file_symbols(ctx, *file_id)); |
82 | acc.extend(syms); | 82 | acc.extend(syms); |
83 | }); | 83 | }); |
84 | } | 84 | } |