aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src/module_map.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_analysis/src/module_map.rs')
-rw-r--r--crates/ra_analysis/src/module_map.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_analysis/src/module_map.rs b/crates/ra_analysis/src/module_map.rs
index ff0ec3cc7..b15432498 100644
--- a/crates/ra_analysis/src/module_map.rs
+++ b/crates/ra_analysis/src/module_map.rs
@@ -8,7 +8,7 @@ use std::sync::Arc;
8 8
9salsa::query_group! { 9salsa::query_group! {
10 pub(crate) trait ModulesDatabase: SyntaxDatabase { 10 pub(crate) trait ModulesDatabase: SyntaxDatabase {
11 fn module_tree(key: ()) -> Arc<ModuleTreeDescriptor> { 11 fn module_tree() -> Arc<ModuleTreeDescriptor> {
12 type ModuleTreeQuery; 12 type ModuleTreeQuery;
13 } 13 }
14 fn module_descriptor(file_id: FileId) -> Arc<ModuleDescriptor> { 14 fn module_descriptor(file_id: FileId) -> Arc<ModuleDescriptor> {
@@ -22,8 +22,8 @@ fn module_descriptor(db: &impl ModulesDatabase, file_id: FileId) -> Arc<ModuleDe
22 Arc::new(ModuleDescriptor::new(file.ast())) 22 Arc::new(ModuleDescriptor::new(file.ast()))
23} 23}
24 24
25fn module_tree(db: &impl ModulesDatabase, (): ()) -> Arc<ModuleTreeDescriptor> { 25fn module_tree(db: &impl ModulesDatabase) -> Arc<ModuleTreeDescriptor> {
26 let file_set = db.file_set(()); 26 let file_set = db.file_set();
27 let mut files = Vec::new(); 27 let mut files = Vec::new();
28 for &file_id in file_set.files.iter() { 28 for &file_id in file_set.files.iter() {
29 let module_descr = db.module_descriptor(file_id); 29 let module_descr = db.module_descriptor(file_id);