set rayon global thread panic handler

This commit is contained in:
Stephan Dilly 2020-03-25 23:37:00 +01:00
parent 62d93a1025
commit 63ec83f60d
3 changed files with 7 additions and 0 deletions

1
Cargo.lock generated
View file

@ -293,6 +293,7 @@ dependencies = [
"dirs",
"itertools 0.9.0",
"log",
"rayon-core",
"scopetime",
"simplelog",
"tui",

View file

@ -26,6 +26,7 @@ keywords = [
crossterm = "0.15"
tui = { version = "0.8", default-features=false, features = ['crossterm'] }
itertools = "0.9"
rayon-core = "1.7"
log = "0.4"
simplelog = "0.7"
dirs = "2.0"

View file

@ -39,6 +39,11 @@ fn main() -> Result<()> {
let rx_input = poll::start_polling_thread();
rayon_core::ThreadPoolBuilder::new()
.panic_handler(|e| panic!(e))
.build_global()
.unwrap();
app.update();
loop {