Merge pull request #2650 from TheBlueMatt/2023-10-make-clippy-shut-up
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Thu, 12 Oct 2023 20:44:46 +0000 (20:44 +0000)
committerGitHub <noreply@github.com>
Thu, 12 Oct 2023 20:44:46 +0000 (20:44 +0000)
Make clippy shut up about `PartialOrd` and `Ord` both impl'd

lightning-invoice/src/lib.rs

index 9695d79036ecc6a776e9ab10e340f0a94a7463d1..d953795cf8e061157f1c69e9c5bc5eae2b743ca6 100644 (file)
@@ -504,7 +504,7 @@ pub struct Bolt11InvoiceSignature(pub RecoverableSignature);
 
 impl PartialOrd for Bolt11InvoiceSignature {
        fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
-               self.0.serialize_compact().1.partial_cmp(&other.0.serialize_compact().1)
+               Some(self.cmp(other))
        }
 }