aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/item_tree
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def/src/item_tree')
-rw-r--r--crates/ra_hir_def/src/item_tree/lower.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/item_tree/lower.rs b/crates/ra_hir_def/src/item_tree/lower.rs
index b97927f27..733fcac7a 100644
--- a/crates/ra_hir_def/src/item_tree/lower.rs
+++ b/crates/ra_hir_def/src/item_tree/lower.rs
@@ -136,7 +136,7 @@ impl Ctx {
136 136
137 fn collect_inner_items(&mut self, container: &SyntaxNode) { 137 fn collect_inner_items(&mut self, container: &SyntaxNode) {
138 let forced_vis = self.forced_visibility.take(); 138 let forced_vis = self.forced_visibility.take();
139 let mut inner_items = mem::replace(&mut self.tree.inner_items, FxHashMap::default()); 139 let mut inner_items = mem::take(&mut self.tree.inner_items);
140 inner_items.extend( 140 inner_items.extend(
141 container.descendants().skip(1).filter_map(ast::ModuleItem::cast).filter_map(|item| { 141 container.descendants().skip(1).filter_map(ast::ModuleItem::cast).filter_map(|item| {
142 let ast_id = self.source_ast_id_map.ast_id(&item); 142 let ast_id = self.source_ast_id_map.ast_id(&item);