aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-11-20 14:18:52 +0000
committerAleksey Kladov <[email protected]>2018-11-20 14:21:00 +0000
commit1913bedc2ec51c5ac44c6b72dd8e84b05026c694 (patch)
treead1856de335f35c4a00bb5878060e54491a08c09
parenta300fb68e25ea0cbf2cfba38968a40674cd4c805 (diff)
Make more stuff private
-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)