mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
cleanups in roc_std
This commit is contained in:
parent
88575b2140
commit
6d55acc5cf
3 changed files with 7 additions and 8 deletions
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue