Run cargo fmt --all

This commit is contained in:
Paul Hauner 2019-06-13 12:21:09 -04:00
parent 0128e9c0ce
commit cf3d8b0688
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C
3 changed files with 5 additions and 7 deletions

View File

@ -57,7 +57,7 @@ fn main() {
.help("If supplied along with `index`, generates keys `i..i + n`.") .help("If supplied along with `index`, generates keys `i..i + n`.")
.takes_value(true) .takes_value(true)
.default_value("1"), .default_value("1"),
) ),
) )
.get_matches(); .get_matches();
@ -65,7 +65,7 @@ fn main() {
Ok(dir) => dir, Ok(dir) => dir,
Err(e) => { Err(e) => {
crit!(log, "Failed to initialize data dir"; "error" => format!("{:?}", e)); crit!(log, "Failed to initialize data dir"; "error" => format!("{:?}", e));
return return;
} }
}; };
@ -73,7 +73,7 @@ fn main() {
if let Err(e) = client_config.apply_cli_args(&matches) { if let Err(e) = client_config.apply_cli_args(&matches) {
crit!(log, "Failed to apply CLI args"; "error" => format!("{:?}", e)); crit!(log, "Failed to apply CLI args"; "error" => format!("{:?}", e));
return return;
}; };
// Ensure the `data_dir` in the config matches that supplied to the CLI. // Ensure the `data_dir` in the config matches that supplied to the CLI.

View File

@ -27,8 +27,7 @@ pub fn start_server<T: BeaconChainTypes + Clone + 'static>(
network_chan: crossbeam_channel::Sender<NetworkMessage>, network_chan: crossbeam_channel::Sender<NetworkMessage>,
beacon_chain: Arc<BeaconChain<T>>, beacon_chain: Arc<BeaconChain<T>>,
log: &slog::Logger, log: &slog::Logger,
) -> exit_future::Signal ) -> exit_future::Signal {
{
let log = log.new(o!("Service"=>"RPC")); let log = log.new(o!("Service"=>"RPC"));
let env = Arc::new(Environment::new(1)); let env = Arc::new(Environment::new(1));

View File

@ -38,8 +38,7 @@ impl<E: EthSpec> Case for OperationsBlockHeader<E> {
// Processing requires the epoch cache. // Processing requires the epoch cache.
state.build_all_caches(spec).unwrap(); state.build_all_caches(spec).unwrap();
let mut result = let mut result = process_block_header(&mut state, &self.block, spec, true).map(|_| state);
process_block_header(&mut state, &self.block, spec, true).map(|_| state);
compare_beacon_state_results_without_caches(&mut result, &mut expected) compare_beacon_state_results_without_caches(&mut result, &mut expected)
} }