fix PanicInfo deprecation

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-06-16 00:12:56 +00:00
parent 0923b6f428
commit 3872ae80f7

View file

@ -1,6 +1,6 @@
#![allow(dead_code)] // this is a developer's toolbox
use std::{panic, panic::PanicInfo};
use std::panic;
/// Export all of the ancillary tools from here as well.
pub use crate::utils::debug::*;
@ -59,7 +59,8 @@ pub fn set_panic_trap() {
}
#[inline(always)]
fn panic_handler(info: &PanicInfo<'_>, next: &dyn Fn(&PanicInfo<'_>)) {
#[allow(deprecated_in_future)]
fn panic_handler(info: &panic::PanicInfo<'_>, next: &dyn Fn(&panic::PanicInfo<'_>)) {
trap();
next(info);
}