From 27ae87d2807ed2e191597632bf53e55e2a861a42 Mon Sep 17 00:00:00 2001 From: Jacob Turner Date: Thu, 22 Feb 2024 14:40:40 +0100 Subject: [PATCH] Update crates/core/src/types/key/secp256k1.rs --- crates/core/src/types/key/secp256k1.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/core/src/types/key/secp256k1.rs b/crates/core/src/types/key/secp256k1.rs index 620f5d01780..e1baf17b6c3 100644 --- a/crates/core/src/types/key/secp256k1.rs +++ b/crates/core/src/types/key/secp256k1.rs @@ -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, } } }