Skip to content

Commit

Permalink
Use PanicHookInfo over deprecated PanicInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Oct 3, 2024
1 parent 0501835 commit 9e3c8e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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>() {
Expand Down

0 comments on commit 9e3c8e7

Please sign in to comment.