aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_analysis/src/descriptors/module/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_analysis/src/descriptors/module/mod.rs b/crates/ra_analysis/src/descriptors/module/mod.rs
index ff7afe16e..aab792e28 100644
--- a/crates/ra_analysis/src/descriptors/module/mod.rs
+++ b/crates/ra_analysis/src/descriptors/module/mod.rs
@@ -146,7 +146,7 @@ pub(crate) struct ModuleTree {
146} 146}
147 147
148impl ModuleTree { 148impl ModuleTree {
149 pub(crate) fn modules_for_source(&self, source: ModuleSource) -> Vec<ModuleId> { 149 fn modules_for_source(&self, source: ModuleSource) -> Vec<ModuleId> {
150 self.mods 150 self.mods
151 .iter() 151 .iter()
152 .enumerate() 152 .enumerate()
@@ -155,7 +155,7 @@ impl ModuleTree {
155 .collect() 155 .collect()
156 } 156 }
157 157
158 pub(crate) fn any_module_for_source(&self, source: ModuleSource) -> Option<ModuleId> { 158 fn any_module_for_source(&self, source: ModuleSource) -> Option<ModuleId> {
159 self.modules_for_source(source).pop() 159 self.modules_for_source(source).pop()
160 } 160 }
161} 161}
@@ -261,7 +261,7 @@ struct ModuleData {
261} 261}
262 262
263impl ModuleSource { 263impl ModuleSource {
264 pub(crate) fn new_inline(file_id: FileId, module: ast::Module) -> ModuleSource { 264 fn new_inline(file_id: FileId, module: ast::Module) -> ModuleSource {
265 assert!(!module.has_semi()); 265 assert!(!module.has_semi());
266 let ptr = SyntaxPtr::new(file_id, module.syntax()); 266 let ptr = SyntaxPtr::new(file_id, module.syntax());
267 ModuleSource::Module(ptr) 267 ModuleSource::Module(ptr)