Unwrap or default

This commit is contained in:
Tomasz Drwięga 2016-06-26 22:48:09 +02:00
parent 6bbaced3cd
commit 2bd0c5ebcb

View File

@ -209,7 +209,7 @@ fn execute_client(conf: Configuration, spec: Spec, client_config: ClientConfig)
// Miner
let miner = Miner::new(conf.args.flag_force_sealing, conf.spec(), Some(account_service.clone()));
miner.set_author(conf.author().unwrap_or(Default::default()));
miner.set_author(conf.author().unwrap_or_default());
miner.set_gas_floor_target(conf.gas_floor_target());
miner.set_gas_ceil_target(conf.gas_ceil_target());
miner.set_extra_data(conf.extra_data());