Skip to content

Commit

Permalink
rust 1.82 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Oct 20, 2024
1 parent 158d4be commit 79cebc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ mod panic_handler {
fn stack(error: &Error) -> String;
}

pub fn process(info: &std::panic::PanicInfo) -> String {
pub fn process(info: &std::panic::PanicHookInfo) -> String {
let mut msg = info.to_string();

// Add the error stack to our message.
Expand Down Expand Up @@ -1053,7 +1053,7 @@ mod panic_handler {
impl KaspaCli {
pub fn init_panic_hook(self: &Arc<Self>) {
let this = self.clone();
let handler = move |info: &std::panic::PanicInfo| {
let handler = move |info: &std::panic::PanicHookInfo| {
let msg = panic_handler::process(info);
this.term().writeln(msg.crlf());
panic_handler::console_error(msg);
Expand Down

0 comments on commit 79cebc0

Please sign in to comment.