slab-tree
slab-tree copied to clipboard
Fixed a bug in set_root.
Hi Ian,
I found a bug in set_root
that introduced some inconsistency later when adding children to the new root.
My code contains a test too.
If you temporarily comment out my change in tree.rs the test will fail.
If you have any questions, let me know.
Have fun Jörg
I ran into this when calling make_last_sibling
on a child of the new root, and found that tree traversal was broken. Your branch fixes the problem. Currently I'm using it like this:
[dependencies.slab_tree]
version = "0.3.2"
[patch.crates-io.slab_tree]
git = "https://github.com/jsinger67/slab-tree.git"
branch = "set_root_fix"
Any chance this can be pulled in?
This bug was the reason why I refrained from using this crate in my project. I think there is no maintenance anymore for this crate which is actually really sad. Maybe someone should maintain a fork of it.
Hi. I have interest in adopting this crate. I forked it on: https://github.com/osimarr/slab-tree I applied the fix from @jsinger67 and added some new changes.
Great news. Thanks for your obligation. It would otherwise be sad if this very potential crate drops off. So I appreciate your willingness and will surely support you.