Skip to content

Commit 00a6327

Browse files
committed
fix: Silence deprecation message
We can't properly fix this until our MSRV is bumped to 1.81 Fixes #159
1 parent 0b22d4d commit 00a6327

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ use report::{Method, Report};
5050

5151
use std::borrow::Cow;
5252
use std::io::Result as IoResult;
53+
#[allow(deprecated)]
5354
use std::panic::PanicInfo;
5455
use std::path::{Path, PathBuf};
5556

@@ -149,8 +150,10 @@ macro_rules! setup_panic {
149150

150151
#[doc(hidden)]
151152
pub fn setup_panic(meta: impl Fn() -> Metadata) {
153+
#![allow(deprecated)]
154+
152155
#[allow(unused_imports)]
153-
use std::panic::{self, PanicInfo};
156+
use std::panic;
154157

155158
match PanicStyle::default() {
156159
PanicStyle::Debug => {}
@@ -266,6 +269,7 @@ fn write_msg<P: AsRef<Path>>(
266269
}
267270

268271
/// Utility function which will handle dumping information to disk
272+
#[allow(deprecated)]
269273
pub fn handle_dump(meta: &Metadata, panic_info: &PanicInfo<'_>) -> Option<PathBuf> {
270274
let mut expl = String::new();
271275

0 commit comments

Comments
 (0)