From 9e3c8e7b1873a64793f0b43519d6674b5bf09031 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Thu, 3 Oct 2024 08:47:54 +0200 Subject: [PATCH] Use PanicHookInfo over deprecated PanicInfo --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index a9022a7..94b6c10 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ use anyhow::Result; use backtrace::Backtrace; use flexi_logger::{LogSpecification, Logger}; -use std::panic::{self, PanicInfo}; +use std::panic::{self, PanicHookInfo}; mod common; mod interpreter; @@ -12,7 +12,7 @@ use crate::{ view::Navigation, }; -fn panic_hook(info: &PanicInfo<'_>) { +fn panic_hook(info: &PanicHookInfo<'_>) { let location = info.location().unwrap(); let msg = match info.payload().downcast_ref::<&'static str>() {