Skip to content

Commit

Permalink
Fix deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
walles committed Oct 19, 2024
1 parent 6cf5c45 commit 7327371
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ fn try_pager(input: &mut dyn io::Read, pager_name: &str, color: bool) -> bool {
}
}

fn panic_handler(panic_info: &panic::PanicInfo) {
fn panic_handler(panic_info: &panic::PanicHookInfo) {
eprintln!("\n\n-v-v-v----------- RIFF CRASHED ---------------v-v-v-\n",);

// Panic message
Expand Down Expand Up @@ -432,7 +432,7 @@ fn env_and_command_line() -> Vec<String> {
}

fn main() {
panic::set_hook(Box::new(|panic_info: &panic::PanicInfo| {
panic::set_hook(Box::new(|panic_info: &panic::PanicHookInfo| {
panic_handler(panic_info);
}));

Expand Down

0 comments on commit 7327371

Please sign in to comment.