Skip to content

Commit

Permalink
Fix deprecation warning on Rust 1.82
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln committed Oct 17, 2024
1 parent 81de94b commit 4d5273f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/user-facing-errors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ impl Error {
}
}

/// Construct a new UnknownError from a `PanicInfo` in a panic hook. `UnknownError`s created
/// with this constructor will have a proper, useful backtrace.
pub fn new_in_panic_hook(panic_info: &std::panic::PanicInfo<'_>) -> Self {
/// Construct a new UnknownError from a [`PanicHookInfo`] in a panic hook. [`UnknownError`]s
/// created with this constructor will have a proper, useful backtrace.
pub fn new_in_panic_hook(panic_info: &std::panic::PanicHookInfo<'_>) -> Self {
let message = panic_info
.payload()
.downcast_ref::<&str>()
Expand Down

0 comments on commit 4d5273f

Please sign in to comment.