Skip to content

Commit 3cfd327

Browse files
committed
remove use of nightly feature
1 parent f5e437b commit 3cfd327

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

2-
#![feature(panic_info_message)]
3-
42
use clap::{Parser, Subcommand};
53
use std::path::PathBuf;
64

@@ -92,7 +90,7 @@ fn main() {
9290
};
9391

9492
std::panic::set_hook(Box::new(|info| {
95-
if let Some(msg) = info.message() {
93+
if let Some(msg) = info.payload().downcast_ref::<&str>() {
9694
fatal!(
9795
"{} {}",
9896
msg,

0 commit comments

Comments
 (0)