aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/find_path.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-03-09 10:11:59 +0000
committerAleksey Kladov <[email protected]>2020-03-09 10:11:59 +0000
commit0320ebdd101b01abe5f24e9efcef7c15005fd3a5 (patch)
tree37d5176dfabe886b1eadb2ddb16fbb6834df0a16 /crates/ra_hir_def/src/find_path.rs
parent57c27f91392fdd9d72fd023f4e2fecd8b68a7d09 (diff)
Use `Index` for CrateGraph
Diffstat (limited to 'crates/ra_hir_def/src/find_path.rs')
-rw-r--r--crates/ra_hir_def/src/find_path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/find_path.rs b/crates/ra_hir_def/src/find_path.rs
index 217e19b01..07ca74ec3 100644
--- a/crates/ra_hir_def/src/find_path.rs
+++ b/crates/ra_hir_def/src/find_path.rs
@@ -176,7 +176,7 @@ fn find_importable_locations(
176 // directly (only through reexports in direct dependencies). 176 // directly (only through reexports in direct dependencies).
177 for krate in Some(from.krate) 177 for krate in Some(from.krate)
178 .into_iter() 178 .into_iter()
179 .chain(crate_graph.crate_data(&from.krate).dependencies.iter().map(|dep| dep.crate_id)) 179 .chain(crate_graph[from.krate].dependencies.iter().map(|dep| dep.crate_id))
180 { 180 {
181 result.extend( 181 result.extend(
182 importable_locations_in_crate(db, item, krate) 182 importable_locations_in_crate(db, item, krate)