diff --git a/lib/binding_rust/lib.rs b/lib/binding_rust/lib.rs index 62839d9b..ceb3a67f 100644 --- a/lib/binding_rust/lib.rs +++ b/lib/binding_rust/lib.rs @@ -2087,7 +2087,7 @@ impl<'tree> Node<'tree> { impl PartialEq for Node<'_> { fn eq(&self, other: &Self) -> bool { - self.0.id == other.0.id + core::ptr::eq(self.0.id, other.0.id) } }