Skip to content

Commit 260be7f

Browse files
committed
chore: Adhere to type rename
from `std::panic::PanicInfo` to `std::panic::PanicHookInfo`, which was introduced in Rust 1.81.0. For additional information, see: - https://releases.rs/docs/1.81.0/#compatibility-notes - rust-lang/rust#115974
1 parent b2c86dd commit 260be7f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

zellij-tile/src/shim.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ pub fn go_to_previous_tab() {
339339
unsafe { host_run_plugin_command() };
340340
}
341341

342-
pub fn report_panic(info: &std::panic::PanicInfo) {
342+
pub fn report_panic(info: &std::panic::PanicHookInfo) {
343343
let panic_payload = if let Some(s) = info.payload().downcast_ref::<&str>() {
344344
format!("{}", s)
345345
} else {

zellij-utils/src/errors.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ mod not_wasm {
606606
use super::*;
607607
use crate::channels::{SenderWithContext, ASYNCOPENCALLS, OPENCALLS};
608608
use miette::{Diagnostic, GraphicalReportHandler, GraphicalTheme, Report};
609-
use std::panic::PanicInfo;
609+
use std::panic::PanicHookInfo;
610610
use thiserror::Error as ThisError;
611611

612612
/// The maximum amount of calls an [`ErrorContext`] will keep track
@@ -651,7 +651,7 @@ mod not_wasm {
651651
}
652652

653653
/// Custom panic handler/hook. Prints the [`ErrorContext`].
654-
pub fn handle_panic<T>(info: &PanicInfo<'_>, sender: &SenderWithContext<T>)
654+
pub fn handle_panic<T>(info: &PanicHookInfo<'_>, sender: &SenderWithContext<T>)
655655
where
656656
T: ErrorInstruction + Clone,
657657
{

0 commit comments

Comments
 (0)