From 4995427884dbc9275e868205b19a2c33990af6ad Mon Sep 17 00:00:00 2001 From: Age Manning Date: Mon, 18 May 2020 14:04:14 +1000 Subject: [PATCH] Fix formatting (#1154) --- eth2/types/src/beacon_state/exit_cache.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/eth2/types/src/beacon_state/exit_cache.rs b/eth2/types/src/beacon_state/exit_cache.rs index ed8cc6541..0f75e0f28 100644 --- a/eth2/types/src/beacon_state/exit_cache.rs +++ b/eth2/types/src/beacon_state/exit_cache.rs @@ -18,7 +18,7 @@ impl ExitCache { spec: &ChainSpec, ) -> Result<(), BeaconStateError> { if self.initialized { - return Ok(()) + return Ok(()); } self.initialized = true; @@ -57,7 +57,11 @@ impl ExitCache { /// Get number of validators with the given exit epoch. (Return 0 for the default exit epoch.) pub fn get_churn_at(&self, exit_epoch: Epoch) -> Result { self.check_initialized()?; - Ok(self.exit_epoch_counts.get(&exit_epoch).cloned().unwrap_or(0)) + Ok(self + .exit_epoch_counts + .get(&exit_epoch) + .cloned() + .unwrap_or(0)) } }