Skip to content

Commit 8085ab1

Browse files
0PandaDEVcristipufu
authored andcommitted
refactor: Update panic hook type from PanicHookInfo to PanicInfo fixex #18
1 parent f7af726 commit 8085ab1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mod config;
44
mod dispatcher;
55
mod sys;
66

7-
use std::{panic::PanicHookInfo, sync::Arc, time::Duration};
7+
use std::{panic::PanicInfo, sync::Arc, time::Duration};
88

99
use client::AptabaseClient;
1010
use config::Config;
@@ -28,9 +28,9 @@ pub struct Builder {
2828
}
2929

3030
pub type PanicHook =
31-
Box<dyn Fn(&AptabaseClient, &PanicHookInfo<'_>, String) + 'static + Sync + Send>;
31+
Box<dyn Fn(&AptabaseClient, &PanicInfo<'_>, String) + 'static + Sync + Send>;
3232

33-
fn get_panic_message(info: &PanicHookInfo) -> String {
33+
fn get_panic_message(info: &PanicInfo) -> String {
3434
let payload = info.payload();
3535
if let Some(s) = payload.downcast_ref::<&str>() {
3636
return s.to_string();

0 commit comments

Comments
 (0)