Update rustfmt to 0.8.4; (#81)
This commit is contained in:
committed by
Jakob Stoklund Olesen
parent
0694384728
commit
a2fd9cf0cc
@@ -119,9 +119,7 @@ fn worker_thread(thread_num: usize,
|
||||
|
||||
// Tell them we're starting this job.
|
||||
// The receiver should always be present for this as long as we have jobs.
|
||||
replies
|
||||
.send(Reply::Starting { jobid, thread_num })
|
||||
.unwrap();
|
||||
replies.send(Reply::Starting { jobid, thread_num }).unwrap();
|
||||
|
||||
let result = catch_unwind(|| runone::run(path.as_path())).unwrap_or_else(|e| {
|
||||
// The test panicked, leaving us a `Box<Any>`.
|
||||
|
||||
@@ -207,9 +207,7 @@ impl TestRunner {
|
||||
}
|
||||
|
||||
// Check for any asynchronous replies without blocking.
|
||||
while let Some(reply) = self.threads
|
||||
.as_mut()
|
||||
.and_then(ConcurrentRunner::try_get) {
|
||||
while let Some(reply) = self.threads.as_mut().and_then(ConcurrentRunner::try_get) {
|
||||
self.handle_reply(reply);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user