Skip to content

Commit 6cafba9

Browse files
authored
Merge pull request #2650 from TheBlueMatt/2023-10-make-clippy-shut-up
Make clippy shut up about `PartialOrd` and `Ord` both impl'd
2 parents 60c1073 + ec7d665 commit 6cafba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning-invoice/src/lib.rs

+1-1
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)