We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7af726 commit 8085ab1Copy full SHA for 8085ab1
1 file changed
src/lib.rs
@@ -4,7 +4,7 @@ mod config;
4
mod dispatcher;
5
mod sys;
6
7
-use std::{panic::PanicHookInfo, sync::Arc, time::Duration};
+use std::{panic::PanicInfo, sync::Arc, time::Duration};
8
9
use client::AptabaseClient;
10
use config::Config;
@@ -28,9 +28,9 @@ pub struct Builder {
28
}
29
30
pub type PanicHook =
31
- Box<dyn Fn(&AptabaseClient, &PanicHookInfo<'_>, String) + 'static + Sync + Send>;
+ Box<dyn Fn(&AptabaseClient, &PanicInfo<'_>, String) + 'static + Sync + Send>;
32
33
-fn get_panic_message(info: &PanicHookInfo) -> String {
+fn get_panic_message(info: &PanicInfo) -> String {
34
let payload = info.payload();
35
if let Some(s) = payload.downcast_ref::<&str>() {
36
return s.to_string();
0 commit comments