From c8505bdce8f2fe712062294dabbd7531d22619c0 Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Wed, 16 Nov 2022 12:06:17 +0200 Subject: [PATCH] Derive Eq where clippy suggests --- tendermint/src/proposal/sign_proposal.rs | 2 +- tendermint/src/public_key/pub_key_response.rs | 2 +- tendermint/src/vote/sign_vote.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tendermint/src/proposal/sign_proposal.rs b/tendermint/src/proposal/sign_proposal.rs index 9c3e4a0e7..fb4f0ff21 100644 --- a/tendermint/src/proposal/sign_proposal.rs +++ b/tendermint/src/proposal/sign_proposal.rs @@ -30,7 +30,7 @@ impl SignProposalRequest { } /// SignedProposalResponse is response containing a signed proposal or an error -#[derive(Clone, PartialEq, Debug)] +#[derive(Clone, PartialEq, Eq, Debug)] pub struct SignedProposalResponse { /// Proposal pub proposal: Option, diff --git a/tendermint/src/public_key/pub_key_response.rs b/tendermint/src/public_key/pub_key_response.rs index 5a00028f1..e974912f1 100644 --- a/tendermint/src/public_key/pub_key_response.rs +++ b/tendermint/src/public_key/pub_key_response.rs @@ -1,7 +1,7 @@ use crate::{privval::RemoteSignerError, PublicKey}; /// PubKeyResponse -#[derive(Clone, PartialEq, Debug)] +#[derive(Clone, PartialEq, Eq, Debug)] // Todo: either pub_key OR error is present pub struct PubKeyResponse { /// Public key diff --git a/tendermint/src/vote/sign_vote.rs b/tendermint/src/vote/sign_vote.rs index c1bcbcd66..234a813cc 100644 --- a/tendermint/src/vote/sign_vote.rs +++ b/tendermint/src/vote/sign_vote.rs @@ -29,7 +29,7 @@ impl SignVoteRequest { } /// SignedVoteResponse is a response containing a signed vote or an error -#[derive(Clone, PartialEq, Debug)] +#[derive(Clone, PartialEq, Eq, Debug)] pub struct SignedVoteResponse { /// Optional Vote pub vote: Option,