cleanups in roc_std

This commit is contained in:
Folkert 2023-11-18 22:42:33 +01:00
parent 88575b2140
commit 6d55acc5cf
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 7 additions and 8 deletions

View file

@ -494,7 +494,7 @@ impl PartialEq for I128 {
impl PartialOrd for I128 {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
i128::from(*self).partial_cmp(&i128::from(*other))
Some(self.cmp(other))
}
}
@ -546,7 +546,7 @@ impl PartialEq for U128 {
impl PartialOrd for U128 {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
u128::from(*self).partial_cmp(&u128::from(*other))
Some(self.cmp(other))
}
}