From ebca677180d7679588f3e9c2d7119edeb0d93872 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 11 Oct 2019 11:37:54 +0300 Subject: reduce visibility --- crates/ra_db/src/input.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_db/src') diff --git a/crates/ra_db/src/input.rs b/crates/ra_db/src/input.rs index 23148096c..cae51b02c 100644 --- a/crates/ra_db/src/input.rs +++ b/crates/ra_db/src/input.rs @@ -48,9 +48,6 @@ impl SourceRoot { pub fn new_library() -> SourceRoot { SourceRoot { is_library: true, ..SourceRoot::new() } } - pub fn file_by_relative_path(&self, path: &RelativePath) -> Option { - self.files.get(path).copied() - } pub fn insert_file(&mut self, path: RelativePathBuf, file_id: FileId) { self.files.insert(path, file_id); } @@ -60,6 +57,9 @@ impl SourceRoot { pub fn walk(&self) -> impl Iterator + '_ { self.files.values().copied() } + pub(crate) fn file_by_relative_path(&self, path: &RelativePath) -> Option { + self.files.get(path).copied() + } } /// `CrateGraph` is a bit of information which turns a set of text files into a -- cgit v1.2.3