diff --git a/Code/common/src/validator_set.rs b/Code/common/src/validator_set.rs index dcd8210e1..cd58f1698 100644 --- a/Code/common/src/validator_set.rs +++ b/Code/common/src/validator_set.rs @@ -12,7 +12,6 @@ pub trait PublicKey where Self: Clone + Debug + PartialEq + Eq, { - fn hash(&self) -> u64; // FIXME: Make the hash type generic } /// Defines the requirements for an address. diff --git a/Code/test/src/validator_set.rs b/Code/test/src/validator_set.rs index bf7f88f5b..e50b9a781 100644 --- a/Code/test/src/validator_set.rs +++ b/Code/test/src/validator_set.rs @@ -17,11 +17,7 @@ impl PublicKey { } } -impl malachite_common::PublicKey for PublicKey { - fn hash(&self) -> u64 { - self.hash() - } -} +impl malachite_common::PublicKey for PublicKey {} #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)] pub struct Address(u64);