diff options
Diffstat (limited to 'crates/ra_hir_def/src/child_by_source.rs')
-rw-r--r-- | crates/ra_hir_def/src/child_by_source.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/child_by_source.rs b/crates/ra_hir_def/src/child_by_source.rs index 403ba8b57..4488e8502 100644 --- a/crates/ra_hir_def/src/child_by_source.rs +++ b/crates/ra_hir_def/src/child_by_source.rs | |||
@@ -80,9 +80,9 @@ impl ChildBySource for ModuleId { | |||
80 | 80 | ||
81 | module_data.scope.declarations().for_each(|item| add_module_def(db, &mut res, item)); | 81 | module_data.scope.declarations().for_each(|item| add_module_def(db, &mut res, item)); |
82 | 82 | ||
83 | for &impl_ in module_data.scope.impls.iter() { | 83 | for imp in module_data.scope.impls() { |
84 | let src = impl_.lookup(db).source(db); | 84 | let src = imp.lookup(db).source(db); |
85 | res[keys::IMPL].insert(src, impl_) | 85 | res[keys::IMPL].insert(src, imp) |
86 | } | 86 | } |
87 | 87 | ||
88 | res | 88 | res |