diff options
author | Aleksey Kladov <[email protected]> | 2018-10-20 16:43:02 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-10-20 16:43:02 +0100 |
commit | 73dd870da2dcc991b0fdcdde8bee91f05cb9e182 (patch) | |
tree | 611f4bb8433c733a3e6c3c74779d79366a2ccc81 /crates/ra_analysis/src/roots.rs | |
parent | 2ded93a78a108c1f7e0dd0a9036c88c786f21dce (diff) |
update salsa
Diffstat (limited to 'crates/ra_analysis/src/roots.rs')
-rw-r--r-- | crates/ra_analysis/src/roots.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_analysis/src/roots.rs b/crates/ra_analysis/src/roots.rs index 1f2b21b27..19c84df65 100644 --- a/crates/ra_analysis/src/roots.rs +++ b/crates/ra_analysis/src/roots.rs | |||
@@ -50,7 +50,7 @@ impl WritableSourceRoot { | |||
50 | } | 50 | } |
51 | } | 51 | } |
52 | } | 52 | } |
53 | let file_set = self.db.file_set(()); | 53 | let file_set = self.db.file_set(); |
54 | let mut files: FxHashSet<FileId> = file_set.files.clone(); | 54 | let mut files: FxHashSet<FileId> = file_set.files.clone(); |
55 | for file_id in removed { | 55 | for file_id in removed { |
56 | files.remove(&file_id); | 56 | files.remove(&file_id); |
@@ -65,10 +65,10 @@ impl WritableSourceRoot { | |||
65 | 65 | ||
66 | impl SourceRoot for WritableSourceRoot { | 66 | impl SourceRoot for WritableSourceRoot { |
67 | fn module_tree(&self) -> Arc<ModuleTreeDescriptor> { | 67 | fn module_tree(&self) -> Arc<ModuleTreeDescriptor> { |
68 | self.db.module_tree(()) | 68 | self.db.module_tree() |
69 | } | 69 | } |
70 | fn contains(&self, file_id: FileId) -> bool { | 70 | fn contains(&self, file_id: FileId) -> bool { |
71 | self.db.file_set(()).files.contains(&file_id) | 71 | self.db.file_set().files.contains(&file_id) |
72 | } | 72 | } |
73 | fn lines(&self, file_id: FileId) -> Arc<LineIndex> { | 73 | fn lines(&self, file_id: FileId) -> Arc<LineIndex> { |
74 | self.db.file_lines(file_id) | 74 | self.db.file_lines(file_id) |
@@ -78,7 +78,7 @@ impl SourceRoot for WritableSourceRoot { | |||
78 | } | 78 | } |
79 | fn symbols<'a>(&'a self, acc: &mut Vec<Arc<SymbolIndex>>) { | 79 | fn symbols<'a>(&'a self, acc: &mut Vec<Arc<SymbolIndex>>) { |
80 | let db = &self.db; | 80 | let db = &self.db; |
81 | let symbols = db.file_set(()); | 81 | let symbols = db.file_set(); |
82 | let symbols = symbols | 82 | let symbols = symbols |
83 | .files | 83 | .files |
84 | .iter() | 84 | .iter() |