incorrect implementation of partial_cmp on an Ord type

This commit is contained in:
Folkert 2023-10-07 15:19:12 +02:00
parent 49c42f5ed8
commit 9cdc49b9db
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -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))
}
}