mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 15:02:20 +01:00
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.
This commit is contained in:
parent
eea19de198
commit
ec7d665436
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue