Skip to content

Commit ada2b29

Browse files
committed
fix: non-canonical implementation of partial_cmp in an Ord type.
1 parent f6e3b72 commit ada2b29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/types/func.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ impl Ord for FuncSignature {
247247

248248
impl PartialOrd for FuncSignature {
249249
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
250-
Some(self.mangled_name.as_str().cmp(other.mangled_name.as_str()))
250+
Some(self.cmp(other))
251251
}
252252
}
253253

0 commit comments

Comments
 (0)