Skip to content

Commit

Permalink
Update crates/core/src/types/key/secp256k1.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
batconjurer authored Feb 22, 2024
1 parent 2a6095f commit 27ae87d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/core/src/types/key/secp256k1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,9 @@ impl PartialOrd for Signature {

impl Ord for Signature {
fn cmp(&self, other: &Self) -> Ordering {
match self.0.to_bytes().partial_cmp(&other.0.to_bytes()) {
Some(Ordering::Equal) => self.1.cmp(&other.1),
res => res.unwrap(),
match self.0.to_bytes().cmp(&other.0.to_bytes()) {
Ordering::Equal => self.1.cmp(&other.1),
res => res,
}
}
}
Expand Down

0 comments on commit 27ae87d

Please sign in to comment.