Skip to content

Commit f22f10b

Browse files
committed
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.
1 parent 732a83c commit f22f10b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitcoin/src/taproot/serialized_signature.rs

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

5050
impl PartialOrd for SerializedSignature {
5151
fn partial_cmp(&self, other: &SerializedSignature) -> Option<core::cmp::Ordering> {
52-
Some((**self).cmp(&**other))
52+
Some(self.cmp(other))
5353
}
5454
}
5555

0 commit comments

Comments
 (0)