projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
60c1073
)
Merge pull request #2650 from TheBlueMatt/2023-10-make-clippy-shut-up
author
Matt Corallo
<649246+TheBlueMatt@users.noreply.github.com>
Thu, 12 Oct 2023 20:44:46 +0000
(20:44 +0000)
committer
GitHub
<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
patch
|
blob
|
history
diff --git
a/lightning-invoice/src/lib.rs
b/lightning-invoice/src/lib.rs
index 9695d79036ecc6a776e9ab10e340f0a94a7463d1..d953795cf8e061157f1c69e9c5bc5eae2b743ca6 100644
(file)
--- a/
lightning-invoice/src/lib.rs
+++ b/
lightning-invoice/src/lib.rs
@@
-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)
)
}
}