correct for use in earlier releases of rust.
This commit is contained in:
@@ -1504,8 +1504,8 @@ impl PartialOrd<Ref> for Addr {
|
|||||||
},
|
},
|
||||||
&Addr::HeapCell(h) =>
|
&Addr::HeapCell(h) =>
|
||||||
match r {
|
match r {
|
||||||
Ref::StackCell(..) => Some(Ordering::Less),
|
&Ref::StackCell(..) => Some(Ordering::Less),
|
||||||
Ref::HeapCell(h1) => h.partial_cmp(h1)
|
&Ref::HeapCell(h1) => h.partial_cmp(&h1)
|
||||||
},
|
},
|
||||||
_ => None
|
_ => None
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user