We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0430af5 commit 7a48ba1Copy full SHA for 7a48ba1
src/parser/mod.rs
@@ -609,10 +609,7 @@ where
609
// explicit stack for post-order traversal: (node, visited)
610
let mut stack: Vec<(Node<'a>, bool)> = Vec::new();
611
612
- // Collect children first to avoid holding an iterator borrow on
613
- // the container while we later may need to mutably borrow it.
614
- let children: Vec<_> = container.children().collect();
615
- for ch in children {
+ for ch in container.children() {
616
stack.push((ch, false));
617
618
while let Some((node, visited)) = stack.pop() {
0 commit comments