Upgrade to Rust 1.31.0 (#2052)

* Upgrade to Rust 1.31.0
* Upgrade nightly
* Fix all clippy warnings
* Revert relaxed version check and update
This commit is contained in:
Greg Fitzgerald
2018-12-07 20:01:28 -07:00
committed by GitHub
parent 2bad6584f6
commit 0a83b17cdd
70 changed files with 487 additions and 298 deletions

View File

@@ -23,7 +23,8 @@ fn main() -> Result<(), Box<error::Error>> {
.value_name("NUM")
.takes_value(true)
.help("JSON RPC listener port"),
).get_matches();
)
.get_matches();
let port = if let Some(p) = matches.value_of("port") {
p.to_string()

View File

@@ -46,10 +46,9 @@ impl VoteSignerRpcService {
sleep(Duration::from_millis(100));
}
server.unwrap().close();
()
})
.unwrap();
VoteSignerRpcService { thread_hdl, exit }
Self { thread_hdl, exit }
}
pub fn exit(&self) {