diff --git a/eth2/types/src/beacon_state/exit_cache.rs b/eth2/types/src/beacon_state/exit_cache.rs index ed8cc6541d..0f75e0f28a 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)) } }