Simplify PartialOrd implementation

Lint error with new nightly version "non-canonical implementation of
`partial_cmp` on an `Ord` type".

Update to directly call instead of dereferencing first.
This commit is contained in:
Jamil Lambert, PhD 2025-06-24 12:06:06 +01:00
parent 732a83c3a9
commit f22f10b5ca
No known key found for this signature in database
GPG Key ID: 7F574053F8F17A64
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ impl PartialEq<SerializedSignature> for [u8] {
impl PartialOrd for SerializedSignature {
fn partial_cmp(&self, other: &SerializedSignature) -> Option<core::cmp::Ordering> {
Some((**self).cmp(&**other))
Some(self.cmp(other))
}
}