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:
parent
732a83c3a9
commit
f22f10b5ca
|
@ -49,7 +49,7 @@ impl PartialEq<SerializedSignature> for [u8] {
|
||||||
|
|
||||||
impl PartialOrd for SerializedSignature {
|
impl PartialOrd for SerializedSignature {
|
||||||
fn partial_cmp(&self, other: &SerializedSignature) -> Option<core::cmp::Ordering> {
|
fn partial_cmp(&self, other: &SerializedSignature) -> Option<core::cmp::Ordering> {
|
||||||
Some((**self).cmp(&**other))
|
Some(self.cmp(other))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue