Skip to content

Commit 53c5993

Browse files
committed
clippy: fix PartialOrd impl of SerializedSignature
We have duplicated funny logic in the PartialOrd and Ord impls of SerializedSignature. No need to duplicate: just have PartialOrd call into Ord.
1 parent c45c8c2 commit 53c5993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ecdsa/serialized_signature.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl PartialEq<SerializedSignature> for [u8] {
5454

5555
impl PartialOrd for SerializedSignature {
5656
fn partial_cmp(&self, other: &SerializedSignature) -> Option<core::cmp::Ordering> {
57-
Some((**self).cmp(&**other))
57+
Some(self.cmp(other))
5858
}
5959
}
6060

0 commit comments

Comments
 (0)