aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_db/src/input.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-10-14 14:26:42 +0100
committerGitHub <[email protected]>2019-10-14 14:26:42 +0100
commit8e3864fd580fb93e8ce92e4b4e6ac51050e54047 (patch)
tree7cc9565b1e81ec069297167e935d062b7dc4bc06 /crates/ra_db/src/input.rs
parente182825170e346abb84240b84458b49b73783dca (diff)
parentabf2179c0b606730acadc61451739baecfa33a5d (diff)
Merge #2008
2008: Prepare SourceDatabase API for lazy file loading r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_db/src/input.rs')
-rw-r--r--crates/ra_db/src/input.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_db/src/input.rs b/crates/ra_db/src/input.rs
index cae51b02c..eafa95921 100644
--- a/crates/ra_db/src/input.rs
+++ b/crates/ra_db/src/input.rs
@@ -57,7 +57,7 @@ impl SourceRoot {
57 pub fn walk(&self) -> impl Iterator<Item = FileId> + '_ { 57 pub fn walk(&self) -> impl Iterator<Item = FileId> + '_ {
58 self.files.values().copied() 58 self.files.values().copied()
59 } 59 }
60 pub(crate) fn file_by_relative_path(&self, path: &RelativePath) -> Option<FileId> { 60 pub fn file_by_relative_path(&self, path: &RelativePath) -> Option<FileId> {
61 self.files.get(path).copied() 61 self.files.get(path).copied()
62 } 62 }
63} 63}