Rust cargo fmt

This commit is contained in:
Paul Hauner 2019-01-25 17:23:54 +11:00
parent 6b4c0fe1a3
commit ad62e1e35c
No known key found for this signature in database
GPG Key ID: D362883A9218FCC6
2 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ where
Err(error) => { Err(error) => {
return Ok(Outcome::InvalidBlock(InvalidBlock::StateTransitionFailed( return Ok(Outcome::InvalidBlock(InvalidBlock::StateTransitionFailed(
error, error,
))) )));
} }
}; };

View File

@ -94,10 +94,10 @@ impl<T: SlotClock, U: BeaconNode, V: DutiesReader, W: Signer> BlockProducer<T, U
let is_block_production_slot = match self.epoch_map.is_block_production_slot(slot) { let is_block_production_slot = match self.epoch_map.is_block_production_slot(slot) {
Ok(result) => result, Ok(result) => result,
Err(DutiesReaderError::UnknownEpoch) => { Err(DutiesReaderError::UnknownEpoch) => {
return Ok(PollOutcome::ProducerDutiesUnknown(slot)) return Ok(PollOutcome::ProducerDutiesUnknown(slot));
} }
Err(DutiesReaderError::UnknownValidator) => { Err(DutiesReaderError::UnknownValidator) => {
return Ok(PollOutcome::ValidatorIsUnknown(slot)) return Ok(PollOutcome::ValidatorIsUnknown(slot));
} }
Err(DutiesReaderError::EpochLengthIsZero) => return Err(Error::EpochLengthIsZero), Err(DutiesReaderError::EpochLengthIsZero) => return Err(Error::EpochLengthIsZero),
Err(DutiesReaderError::Poisoned) => return Err(Error::EpochMapPoisoned), Err(DutiesReaderError::Poisoned) => return Err(Error::EpochMapPoisoned),