From 3872ae80f75e754e265e96d9ef3aa072bb36a013 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 16 Jun 2024 00:12:56 +0000 Subject: [PATCH] fix PanicInfo deprecation Signed-off-by: Jason Volk --- src/core/debug.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/debug.rs b/src/core/debug.rs index 207f08fa..ad12099b 100644 --- a/src/core/debug.rs +++ b/src/core/debug.rs @@ -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); }