diff --git a/types/src/v0/impls/stake_table.rs b/types/src/v0/impls/stake_table.rs index f4d2cd16d..d94d7ad81 100644 --- a/types/src/v0/impls/stake_table.rs +++ b/types/src/v0/impls/stake_table.rs @@ -168,23 +168,13 @@ impl Membership for StaticCommittee { // Index the stake table by public key let indexed_stake_table: BTreeMap = members .iter() - .map(|entry| { - ( - SignatureKey::public_key(entry), - entry.clone(), - ) - }) + .map(|entry| (SignatureKey::public_key(entry), entry.clone())) .collect(); // Index the stake table by public key let indexed_da_stake_table: BTreeMap = da_members .iter() - .map(|entry| { - ( - SignatureKey::public_key(entry), - entry.clone(), - ) - }) + .map(|entry| (SignatureKey::public_key(entry), entry.clone())) .collect(); Self { @@ -244,21 +234,13 @@ impl Membership for StaticCommittee { } /// Get the stake table entry for a public key - fn stake( - &self, - pub_key: &SignatureKey, - _epoch: Epoch, - ) -> Option { + fn stake(&self, pub_key: &SignatureKey, _epoch: Epoch) -> Option { // Only return the stake if it is above zero self.indexed_stake_table.get(pub_key).cloned() } /// Get the DA stake table entry for a public key - fn da_stake( - &self, - pub_key: &SignatureKey, - _epoch: Epoch, - ) -> Option { + fn da_stake(&self, pub_key: &SignatureKey, _epoch: Epoch) -> Option { // Only return the stake if it is above zero self.indexed_da_stake_table.get(pub_key).cloned() } @@ -324,6 +306,5 @@ impl Membership for StaticCommittee { } type Epoch = ::Epoch; -type SeqStakeTableEntry = - ::StakeTableEntry; +type SeqStakeTableEntry = ::StakeTableEntry; type SignatureKey = ::SignatureKey;