Update to the rustfmt in rust 1.29, which is now stable.

This commit is contained in:
Dan Gohman
2018-09-13 12:59:25 -07:00
parent f23ea04242
commit 53a0c6c67f
30 changed files with 305 additions and 135 deletions

View File

@@ -106,8 +106,7 @@ fn heartbeat_thread(replies: Sender<Reply>) -> thread::JoinHandle<()> {
while replies.send(Reply::Tick).is_ok() {
thread::sleep(Duration::from_secs(1));
}
})
.unwrap()
}).unwrap()
}
/// Spawn a worker thread running tests.
@@ -154,6 +153,5 @@ fn worker_thread(
// Timing is accumulated independently per thread.
// Timings from this worker thread will be aggregated by `ConcurrentRunner::join()`.
timing::take_current()
})
.unwrap()
}).unwrap()
}

View File

@@ -3,7 +3,12 @@
//! This crate contains the main test driver as well as implementations of the
//! available filetest commands.
#![deny(missing_docs, trivial_numeric_casts, unused_extern_crates, unstable_features)]
#![deny(
missing_docs,
trivial_numeric_casts,
unused_extern_crates,
unstable_features
)]
#![warn(unused_import_braces)]
#![cfg_attr(feature = "cargo-clippy",
allow(
@@ -13,7 +18,11 @@
#![cfg_attr(
feature = "cargo-clippy",
warn(
mut_mut, nonminimal_bool, option_map_unwrap_or, option_map_unwrap_or_else, unicode_not_nfc,
mut_mut,
nonminimal_bool,
option_map_unwrap_or,
option_map_unwrap_or_else,
unicode_not_nfc,
use_self
)
)]

View File

@@ -315,8 +315,7 @@ impl TestRunner {
..
} => Some(dur),
_ => None,
})
.collect::<Vec<_>>();
}).collect::<Vec<_>>();
// Get me some real data, kid.
let len = times.len();