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:
Matt Corallo 2023-10-05 23:57:08 +00:00
parent eea19de198
commit ec7d665436

View 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))
}
}