panic on top-level error

This commit is contained in:
Astro 2019-10-11 22:46:43 +02:00
parent 3cd57801c8
commit 93db5260ec
1 changed files with 1 additions and 2 deletions

View File

@ -279,11 +279,10 @@ fn main() {
let workers: Vec<_> = (0..cpus) let workers: Vec<_> = (0..cpus)
.map(|_| s.spawn(|_| { .map(|_| s.spawn(|_| {
res.worker_loop() res.worker_loop()
.map_err(|e| println!("{}", e))
})) }))
.collect(); .collect();
for worker in workers.into_iter() { for worker in workers.into_iter() {
worker.join().expect("worker").unwrap(); worker.join().expect("worker join").expect("worker");
} }
}).unwrap(); }).unwrap();
} }