Skip to content

Commit ec7d665

Browse files
committed
Make clippy shut up about PartialOrd and Ord both impl'd
Clippy gets mad that we have an implementation of `ParialOrd` and `Ord` separately, even though both are identical. Making `ParitalOrd` call `Ord` makes clippy shut up.
1 parent eea19de commit ec7d665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning-invoice/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ pub struct Bolt11InvoiceSignature(pub RecoverableSignature);
504504

505505
impl PartialOrd for Bolt11InvoiceSignature {
506506
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
507-
self.0.serialize_compact().1.partial_cmp(&other.0.serialize_compact().1)
507+
Some(self.cmp(other))
508508
}
509509
}
510510

0 commit comments

Comments
 (0)