mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
incorrect implementation of partial_cmp
on an Ord
type
This commit is contained in:
parent
49c42f5ed8
commit
9cdc49b9db
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ impl Eq for IdentStr {}
|
|||
|
||||
impl PartialOrd for IdentStr {
|
||||
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
|
||||
self.as_str().partial_cmp(other.as_str())
|
||||
Some(self.cmp(other))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue