From a8a20990ead91607b2949d73f9b2e135841ee6d2 Mon Sep 17 00:00:00 2001 From: jonathanrainer Date: Sun, 24 Nov 2024 08:46:14 +0000 Subject: [PATCH] ROVER-245 Removing deprecated PanicInfo --- crates/robot-panic/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/robot-panic/src/lib.rs b/crates/robot-panic/src/lib.rs index cf44b3fee..ea044fa58 100644 --- a/crates/robot-panic/src/lib.rs +++ b/crates/robot-panic/src/lib.rs @@ -93,7 +93,7 @@ macro_rules! setup_panic { #[cfg(not(debug_assertions))] match ::std::env::var("RUST_BACKTRACE") { Err(_) => { - panic::set_hook(Box::new(move |info: &PanicInfo| { + panic::set_hook(Box::new(move |info: &PanicHookInfo| { let crash_report = get_report(&$meta, info); print_msg(&crash_report, &$meta) .expect("robot-panic: printing error message to console failed"); @@ -105,7 +105,7 @@ macro_rules! setup_panic { () => { #[allow(unused_imports)] - use std::panic::{self, PanicInfo}; + use std::panic::{self, PanicHookInfo}; #[allow(unused_imports)] use $crate::{get_report, print_msg, Metadata}; @@ -120,7 +120,7 @@ macro_rules! setup_panic { repository: env!("CARGO_PKG_REPOSITORY").into(), }; - panic::set_hook(Box::new(move |info: &PanicInfo| { + panic::set_hook(Box::new(move |info: &PanicHookInfo| { let crash_report = get_report(&meta, info); print_msg(&crash_report, &meta) .expect("robot-panic: printing error message to console failed");