From 6f5cb23e7ab487134e74966ed86e8adcc0c65c27 Mon Sep 17 00:00:00 2001 From: tbro Date: Mon, 28 Oct 2024 16:52:30 -0600 Subject: [PATCH] remove unneeded bounds from `Memberships` trait --- crates/types/src/traits/election.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/types/src/traits/election.rs b/crates/types/src/traits/election.rs index 580f06c5a8..aa313fc64a 100644 --- a/crates/types/src/traits/election.rs +++ b/crates/types/src/traits/election.rs @@ -5,7 +5,7 @@ // along with the HotShot repository. If not, see . //! The election trait, used to decide which node is the leader and determine if a vote is valid. -use std::{collections::BTreeSet, fmt::Debug, hash::Hash, num::NonZeroU64}; +use std::{collections::BTreeSet, fmt::Debug, num::NonZeroU64}; use utils::anytrace::Result; @@ -13,9 +13,7 @@ use super::{network::Topic, node_implementation::NodeType}; use crate::{traits::signature_key::SignatureKey, PeerConfig}; /// A protocol for determining membership in and participating in a committee. -pub trait Membership: - Clone + Debug + Eq + PartialEq + Send + Sync + Hash + 'static -{ +pub trait Membership: Clone + Debug + Send + Sync { /// The error type returned by methods like `lookup_leader`. type Error: std::fmt::Display;