Skip to content

Commit

Permalink
fixes #53
Browse files Browse the repository at this point in the history
iterate over floating nodes aswell
  • Loading branch information
JayceFayne committed Jul 1, 2024
1 parent 2ef86da commit 7e8632c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/src/utils/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ impl<'a> Iterator for NodeIterator<'a> {
match self.queue.pop() {
None => None,
Some(result) => {
self.queue.extend(result.nodes.iter());
self.queue
.extend(result.nodes.iter().chain(result.floating_nodes.iter()));
Some(result)
}
}
Expand Down

0 comments on commit 7e8632c

Please sign in to comment.