mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 01:17:27 +00:00
mbe: Use extend instead of push in loop
This commit is contained in:
parent
5e2f9e322f
commit
f7f6d2870f
1 changed files with 1 additions and 5 deletions
|
@ -269,11 +269,7 @@ impl BindingsBuilder {
|
|||
LinkNode::Parent { idx, len } => self.collect_nested_ref(idx, len, &mut nested_refs),
|
||||
});
|
||||
nested_refs.push(last);
|
||||
|
||||
nested_refs.into_iter().for_each(|iter| {
|
||||
let child_bindings = self.build_inner(iter);
|
||||
nested.push(child_bindings)
|
||||
})
|
||||
nested.extend(nested_refs.into_iter().map(|iter| self.build_inner(iter)));
|
||||
}
|
||||
|
||||
fn collect_nodes_ref<'a>(
|
||||
|
|
Loading…
Reference in a new issue