Skip to content

Commit

Permalink
remove unneeded bounds from Memberships trait (#3816)
Browse files Browse the repository at this point in the history
Co-authored-by: tbro <[email protected]>
  • Loading branch information
tbro and tbro authored Oct 29, 2024
1 parent 8c0686f commit 9d5c868
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/types/src/traits/election.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@
// along with the HotShot repository. If not, see <https://mit-license.org/>.

//! 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;

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<TYPES: NodeType>:
Clone + Debug + Eq + PartialEq + Send + Sync + Hash + 'static
{
pub trait Membership<TYPES: NodeType>: Clone + Debug + Send + Sync {
/// The error type returned by methods like `lookup_leader`.
type Error: std::fmt::Display;

Expand Down

0 comments on commit 9d5c868

Please sign in to comment.