Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kukkok3 committed Feb 21, 2024
1 parent 93d1ff4 commit 3430311
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/chain-libs/chain-crypto/src/digest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ impl<H: DigestAlg, T> PartialEq for DigestOf<H, T> {
}

impl<H: DigestAlg, T> Eq for DigestOf<H, T> {}

#[allow(clippy::non_canonical_partial_ord_impl)]
impl<H: DigestAlg, T> PartialOrd for DigestOf<H, T> {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
self.inner.partial_cmp(&other.inner)
Expand Down
2 changes: 1 addition & 1 deletion src/chain-libs/chain-crypto/src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ impl<A: AsymmetricPublicKey> std::cmp::PartialEq<Self> for PublicKey<A> {
}

impl<A: AsymmetricPublicKey> std::cmp::Eq for PublicKey<A> {}

#[allow(clippy::non_canonical_partial_ord_impl)]
impl<A: AsymmetricPublicKey> std::cmp::PartialOrd<Self> for PublicKey<A> {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
self.0.as_ref().partial_cmp(other.0.as_ref())
Expand Down
2 changes: 1 addition & 1 deletion src/chain-libs/chain-crypto/src/role.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl<R, A: key::AsymmetricPublicKey> std::cmp::PartialEq<Self> for PublicKey<R,
}

impl<R, A: key::AsymmetricPublicKey> std::cmp::Eq for PublicKey<R, A> {}

#[allow(clippy::non_canonical_partial_ord_impl)]
impl<R, A: key::AsymmetricPublicKey> std::cmp::PartialOrd<Self> for PublicKey<R, A> {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
self.inner.partial_cmp(&other.inner)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn decrypt_tally(

let proposals = shares
.into_iter()
.zip(tallies.into_iter())
.zip(tallies)
.map(|(shares, tally)| DecryptedPrivateTallyProposal {
decrypt_shares: shares.into_boxed_slice(),
tally_result: tally.votes.into_boxed_slice(),
Expand Down
2 changes: 1 addition & 1 deletion src/jortestkit/src/measurement/marker/resources_usage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl PartialEq for ResourcesUsage {
&& self.virtual_memory_usage == other.virtual_memory_usage
}
}

#[allow(clippy::non_canonical_partial_ord_impl)]
impl PartialOrd for ResourcesUsage {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
let cpu_cmp = self.cpu_usage().partial_cmp(&other.cpu_usage()).unwrap();
Expand Down

0 comments on commit 3430311

Please sign in to comment.