diff options
author | Jonas Schievink <[email protected]> | 2021-01-20 14:41:18 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-01-20 14:41:18 +0000 |
commit | 0587b99fde4acf4225c024980dbde624ce6821e6 (patch) | |
tree | 0d60b83216f04eb8e2cbb35c1871c07364035a0b /crates/ide_db | |
parent | de5aabd48be33898ae2280f1544bffe166075348 (diff) |
Make public DefMap fields private
Diffstat (limited to 'crates/ide_db')
-rw-r--r-- | crates/ide_db/src/symbol_index.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_db/src/symbol_index.rs b/crates/ide_db/src/symbol_index.rs index 500bdfd6b..e954bd72e 100644 --- a/crates/ide_db/src/symbol_index.rs +++ b/crates/ide_db/src/symbol_index.rs | |||
@@ -191,7 +191,7 @@ pub fn crate_symbols(db: &RootDatabase, krate: CrateId, query: Query) -> Vec<Fil | |||
191 | 191 | ||
192 | let def_map = db.crate_def_map(krate); | 192 | let def_map = db.crate_def_map(krate); |
193 | let mut files = Vec::new(); | 193 | let mut files = Vec::new(); |
194 | let mut modules = vec![def_map.root]; | 194 | let mut modules = vec![def_map.root()]; |
195 | while let Some(module) = modules.pop() { | 195 | while let Some(module) = modules.pop() { |
196 | let data = &def_map[module]; | 196 | let data = &def_map[module]; |
197 | files.extend(data.origin.file_id()); | 197 | files.extend(data.origin.file_id()); |