Prepare for follow-on change

I'm about to make a change that adds metadata to these pointers.
Comparing them with that metadata included leads to a warning, and that
warning is what this change avoids.
This commit is contained in:
Hanno Braun 2025-02-10 20:52:45 +01:00
parent 2dd604b19b
commit d8c511708b

View File

@ -75,7 +75,9 @@ impl<T> Eq for Handle<T> {}
impl<T> Ord for Handle<T> {
fn cmp(&self, other: &Self) -> Ordering {
Rc::as_ptr(&self.inner).cmp(&Rc::as_ptr(&other.inner))
Rc::as_ptr(&self.inner)
.cast::<()>()
.cmp(&Rc::as_ptr(&other.inner).cast::<()>())
}
}