From bb17fe49d6fcee34d0ba76784b8ae00a49f31fc3 Mon Sep 17 00:00:00 2001 From: plaidfinch Date: Wed, 21 Feb 2024 20:18:42 -0500 Subject: [PATCH] Add an `Eq`/`PartialEq` impl for `proposal::State` (#3861) Does what it says on the tin; this was just an oversight that this didn't exist before. --- crates/core/component/governance/src/proposal_state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core/component/governance/src/proposal_state.rs b/crates/core/component/governance/src/proposal_state.rs index 361a879949..56af34b8c4 100644 --- a/crates/core/component/governance/src/proposal_state.rs +++ b/crates/core/component/governance/src/proposal_state.rs @@ -2,7 +2,7 @@ use serde::{Deserialize, Serialize}; use penumbra_proto::{penumbra::core::component::governance::v1 as pb, DomainType}; -#[derive(Debug, Clone, Serialize, Deserialize)] +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] #[serde(try_from = "pb::ProposalState", into = "pb::ProposalState")] pub enum State { Voting,