aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_db/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_db/src/lib.rs')
-rw-r--r--crates/ra_ide_db/src/lib.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/crates/ra_ide_db/src/lib.rs b/crates/ra_ide_db/src/lib.rs
index 79f48c9e3..a105c7556 100644
--- a/crates/ra_ide_db/src/lib.rs
+++ b/crates/ra_ide_db/src/lib.rs
@@ -131,12 +131,10 @@ fn line_index(db: &impl LineIndexDatabase, file_id: FileId) -> Arc<LineIndex> {
131#[derive(Debug, Default, Clone)] 131#[derive(Debug, Default, Clone)]
132pub(crate) struct DebugData { 132pub(crate) struct DebugData {
133 pub(crate) root_paths: FxHashMap<SourceRootId, String>, 133 pub(crate) root_paths: FxHashMap<SourceRootId, String>,
134 pub(crate) crate_names: FxHashMap<CrateId, String>,
135} 134}
136 135
137impl DebugData { 136impl DebugData {
138 pub(crate) fn merge(&mut self, other: DebugData) { 137 pub(crate) fn merge(&mut self, other: DebugData) {
139 self.root_paths.extend(other.root_paths.into_iter()); 138 self.root_paths.extend(other.root_paths.into_iter());
140 self.crate_names.extend(other.crate_names.into_iter());
141 } 139 }
142} 140}