From f22f10b5cab3d70fe31256e0cb462aedeab0879e Mon Sep 17 00:00:00 2001 From: "Jamil Lambert, PhD" Date: Tue, 24 Jun 2025 12:06:06 +0100 Subject: [PATCH] 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. --- bitcoin/src/taproot/serialized_signature.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/taproot/serialized_signature.rs b/bitcoin/src/taproot/serialized_signature.rs index a63af0fe2..60a71584f 100644 --- a/bitcoin/src/taproot/serialized_signature.rs +++ b/bitcoin/src/taproot/serialized_signature.rs @@ -49,7 +49,7 @@ impl PartialEq for [u8] { impl PartialOrd for SerializedSignature { fn partial_cmp(&self, other: &SerializedSignature) -> Option { - Some((**self).cmp(&**other)) + Some(self.cmp(other)) } }