Skip to content

Commit

Permalink
Fix PartialOrd impl for VerificationKey id redpallas, to fix incorrec…
Browse files Browse the repository at this point in the history
…t_partial_ord_impl_on_ord_type clippy error
  • Loading branch information
dmidem committed Aug 23, 2023
1 parent 8977652 commit e4a76d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/primitives/redpallas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl<T: SigType> Eq for VerificationKey<T> {}

impl<T: SigType> PartialOrd for VerificationKey<T> {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
<[u8; 32]>::from(self).partial_cmp(&<[u8; 32]>::from(other))
Some(self.cmp(other))
}
}

Expand Down

0 comments on commit e4a76d5

Please sign in to comment.