Skip to content

Commit

Permalink
ci: fix lint error (#221)
Browse files Browse the repository at this point in the history
Nightly `clippy` incorrectly reports that the commitment `PartialEq`
[implementation](https://github.com/tari-project/tari-crypto/blob/017bb2cde069fc8a1b1a6014f339e59dc7fd6ca7/src/commitment.rs#L157-L161)
recurses. Changing the syntax to use `==` seems to fix this and does the
same thing.

Closes #220.
  • Loading branch information
sdbondi authored Feb 6, 2024
2 parents 017bb2c + d76ea89 commit 9769068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commitment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl<P: PublicKey> Hash for HomomorphicCommitment<P> {

impl<P: PublicKey> PartialEq for HomomorphicCommitment<P> {
fn eq(&self, other: &Self) -> bool {
self.as_public_key().eq(other.as_public_key())
self.as_public_key() == other.as_public_key()
}
}

Expand Down

0 comments on commit 9769068

Please sign in to comment.