remove the deprecated options in rustfmt.toml (#5616)

* remove the deprecated options in rustfmt.toml

* add chain_one_line_max

* fix two issues spot by rustfmt
This commit is contained in:
Guanqun Lu
2017-05-19 10:12:20 -05:00
committed by Gav Wood
parent 84cab18120
commit d10ade1963
3 changed files with 10 additions and 12 deletions

View File

@@ -80,7 +80,7 @@ fn keys_dir(path: String, spec: SpecType) -> Result<RootDiskDirectory, String> {
fn secret_store(dir: Box<RootDiskDirectory>, iterations: Option<u32>) -> Result<EthStore, String> {
match iterations {
Some(i) => EthStore::open_with_iterations(dir, i),
_ => EthStore::open(dir)
_ => EthStore::open(dir)
}.map_err(|e| format!("Could not open keys store: {}", e))
}

View File

@@ -65,10 +65,10 @@ pub fn main() {
StratumServer::start(
&SocketAddr::new(
IpAddr::from_str(&service_config.listen_addr)
.unwrap_or_else(|e|
.unwrap_or_else(|e| {
println!("Fatal: invalid listen address: '{}' ({:?})", &service_config.listen_addr, e);
std::process::exit(1)
),
}),
service_config.port,
),
job_dispatcher.service().clone(),