darkfi 1 год назад
Родитель
Сommit
743d252d57
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      bin/darkirc/src/main.rs
  2. 1 1
      bin/darkwallet/src/main.rs

+ 1 - 1
bin/darkirc/src/main.rs

@@ -59,7 +59,7 @@ mod rpc;
 /// Settings utilities
 mod settings;
 
-fn panic_hook(panic_info: &std::panic::PanicInfo) {
+fn panic_hook(panic_info: &std::panic::PanicHookInfo) {
     error!("panic occurred: {panic_info}");
     error!("{}", std::backtrace::Backtrace::force_capture().to_string());
     std::process::abort()

+ 1 - 1
bin/darkwallet/src/main.rs

@@ -75,7 +75,7 @@ use crate::{net::ZeroMQAdapter, text::TextShaper};
 
 pub type ExecutorPtr = Arc<smol::Executor<'static>>;
 
-fn panic_hook(panic_info: &std::panic::PanicInfo) {
+fn panic_hook(panic_info: &std::panic::PanicHookInfo) {
     error!("panic occurred: {panic_info}");
     error!("{}", std::backtrace::Backtrace::force_capture().to_string());
     std::process::abort()