Upgrade to rustfmt 0.7.1

This commit is contained in:
Jakob Stoklund Olesen
2017-01-25 15:17:27 -08:00
parent 188ffb9881
commit c132b8c328
4 changed files with 23 additions and 29 deletions

View File

@@ -96,10 +96,8 @@ impl ConcurrentRunner {
fn heartbeat_thread(replies: Sender<Reply>) -> thread::JoinHandle<()> {
thread::Builder::new()
.name("heartbeat".to_string())
.spawn(move || {
while replies.send(Reply::Tick).is_ok() {
thread::sleep(Duration::from_secs(1));
}
.spawn(move || while replies.send(Reply::Tick).is_ok() {
thread::sleep(Duration::from_secs(1));
})
.unwrap()
}