mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 02:18:28 +00:00
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:
parent
2dd604b19b
commit
d8c511708b
@ -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::<()>())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user