You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If its parent doesn't have any children (impossible)
If it's the first and not only child of its parent, but it doesn't have a next sibling (impossible)
If it's the last and not only child of its parent, but it doesn't have a previous sibling (impossible)
If detach went wrong, you must have a malformed tree. Could you point out which line of the detach method causes panic? I would also like a debug print of the tree you're using, in order to understand what is going wrong. If you provide us with more information, we could try to understand what part of the source code is failing.
Removing the unwrap isn't a solution, because if detatch fails, it means that there's something very wrong going on with the tree, and we must fix it. Some invariants must not be respected for this to happen.
In a web crawler, when I strip the HTML tree, sometimes
detach()
panic on the.unwrap()
.The text was updated successfully, but these errors were encountered: