Skip to content

Commit

Permalink
Merge pull request #262 from YoshieraHuang/main
Browse files Browse the repository at this point in the history
Fix tree::should_remove_root failing
  • Loading branch information
StarArawn authored Jul 7, 2023
2 parents b458c90 + cded4c0 commit f323612
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ impl Tree {
if let Some(root_node) = self.root_node {
if root_node == index {
self.root_node = None;
self.parents.clear();
self.children.clear();
}
}
Vec::default()
Expand Down

0 comments on commit f323612

Please sign in to comment.