aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/item_tree
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-06-23 17:31:14 +0100
committerJonas Schievink <[email protected]>2020-06-24 15:53:56 +0100
commit20ff1cdcfbef92429962569f7e98a169c6a10e50 (patch)
tree27edf082ebda8cc3a74ac8ab13c3fab045cb749c /crates/ra_hir_def/src/item_tree
parenta0ad457575bdde24d65c3fbcd4b2819459ad0291 (diff)
Address more comments
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);