Skip to content
Snippets Groups Projects
Commit 3872ae80 authored by Jason Volk's avatar Jason Volk
Browse files

fix PanicInfo deprecation


Signed-off-by: default avatarJason Volk <jason@zemos.net>
parent 0923b6f4
No related branches found
No related tags found
1 merge request!467Misc fixes
#![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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment