From 9271b4116eb31dbc03f14f68e84eda0c264570e9 Mon Sep 17 00:00:00 2001 From: extrawurst Date: Fri, 18 Apr 2025 10:05:23 +0200 Subject: [PATCH] remove duplicate panic handler --- src/main.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 524261d0..83742ca4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -73,7 +73,6 @@ use std::{ io::{self, Stdout}, panic, path::Path, - process, time::{Duration, Instant}, }; use ui::style::Theme; @@ -413,12 +412,6 @@ fn set_panic_handlers() -> Result<()> { // global threadpool rayon_core::ThreadPoolBuilder::new() - .panic_handler(|e| { - let backtrace = Backtrace::new(); - shutdown_terminal(); - log_eprintln!("\nGitUI was close due to an unexpected panic.\nPlease file an issue on https://github.com/gitui-org/gitui/issues with the following info:\n\n{:?}\ntrace:\n{:?}", e, backtrace); - process::abort(); - }) .num_threads(4) .build_global()?;