Fix reparent methods to update parent for all siblings#47
Conversation
Previously only first and last siblings had their parent updated, leaving middle siblings with stale parent references.
|
Thank you for taking of this issue which appears to have been with us for over 7 years! |
|
I fear there will be many instances of the newly introduced |
Cleaned up loop to skip 2nd access to `tree.node_mut`, and rust fmt the unit tests.
95972fe to
525bcde
Compare
As expected, a lot instances of |
Fixed with af71571 |
Only the first and last child were being reparented properly (or parent pointer being updated).
Fixes #44