Skip to content

Commit 66dd74c

Browse files
authored
fix: deprecation warning in panic hook (#272)
The patch fixes this warning: warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead --> /home/runner/work/StarlingMonkey/StarlingMonkey/crates/rust-hooks/src/lib.rs:17:17 | 17 | use std::panic::PanicInfo as PanicHookInfo; | ^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default warning: use of deprecated type alias `std::panic::PanicInfo`: use `PanicHookInfo` instead --> /home/runner/work/StarlingMonkey/StarlingMonkey/crates/rust-hooks/src/lib.rs:73:22 | 73 | fn panic_hook(info: &PanicHookInfo) { | ^^^^^^^^^^^^^ warning: `rust-hooks` (lib) generated 2 warnings
1 parent d360913 commit 66dd74c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

crates/rust-hooks/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ use std::ops::Deref;
1111
use std::os::raw::c_char;
1212
use std::os::raw::c_int;
1313
use std::panic;
14-
#[cfg(feature = "panic_hook")]
1514
use std::panic::PanicHookInfo;
16-
#[cfg(not(feature = "panic_hook"))]
17-
use std::panic::PanicInfo as PanicHookInfo;
1815

1916
#[link(name = "wrappers")]
2017
extern "C" {

0 commit comments

Comments
 (0)