From 1913bedc2ec51c5ac44c6b72dd8e84b05026c694 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 20 Nov 2018 17:18:52 +0300 Subject: Make more stuff private --- crates/ra_analysis/src/descriptors/module/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates') 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 { } impl ModuleTree { - pub(crate) fn modules_for_source(&self, source: ModuleSource) -> Vec { + fn modules_for_source(&self, source: ModuleSource) -> Vec { self.mods .iter() .enumerate() @@ -155,7 +155,7 @@ impl ModuleTree { .collect() } - pub(crate) fn any_module_for_source(&self, source: ModuleSource) -> Option { + fn any_module_for_source(&self, source: ModuleSource) -> Option { self.modules_for_source(source).pop() } } @@ -261,7 +261,7 @@ struct ModuleData { } impl ModuleSource { - pub(crate) fn new_inline(file_id: FileId, module: ast::Module) -> ModuleSource { + fn new_inline(file_id: FileId, module: ast::Module) -> ModuleSource { assert!(!module.has_semi()); let ptr = SyntaxPtr::new(file_id, module.syntax()); ModuleSource::Module(ptr) -- cgit v1.2.3