Skip to content

Commit

Permalink
Chore: use PanicHookInfo instead of deprecated PanicInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Oct 14, 2024
1 parent 1de64c2 commit d622a18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests/fixtures/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::collections::HashMap;
use std::env;
use std::fmt;
use std::future::Future;
use std::panic::PanicInfo;
use std::panic::PanicHookInfo;
use std::sync::atomic::AtomicU64;
use std::sync::atomic::Ordering;
use std::sync::Arc;
Expand Down Expand Up @@ -142,7 +142,7 @@ pub fn set_panic_hook() {
}));
}

pub fn log_panic(panic: &PanicInfo) {
pub fn log_panic(panic: &PanicHookInfo) {
let backtrace = {
#[cfg(feature = "bt")]
{
Expand Down

0 comments on commit d622a18

Please sign in to comment.