Skip to content

Commit 9e3c033

Browse files
committed
Actually fix non-empty rbtree infinite iteration, bump version to 0.10.8 (and yes, I tested it locally)
1 parent d3e6feb commit 9e3c033

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "eastl-rs"
33
authors = ["Andrew Buck"]
44
description = "EASTL binary-compatible Rust implementations"
55
documentation = "https://docs.rs/crate/eastl-rs"
6-
version = "0.10.7"
6+
version = "0.10.8"
77
edition = "2021"
88
license-file = "LICENSE"
99
readme = "README.md"

src/internal/rb_tree/node.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,13 @@ impl<K, V> Node<K, V> {
222222
parent = parent_parent;
223223
}
224224

225-
Some(parent)
225+
// I have deliberated on this and truly have no clue why we are doing this, but it works
226+
// and is how it is originally implemented
227+
if !ptr::eq(self.right, parent) {
228+
self = parent;
229+
}
230+
231+
Some(self)
226232
}
227233
}
228234

0 commit comments

Comments
 (0)