fix PanicInfo deprecation
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
0923b6f428
commit
3872ae80f7
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue