fix a couple clippy errors

...with Rust 1.82.
This commit is contained in:
Scott Lamb
2024-12-11 15:03:31 -08:00
parent 3739e634ab
commit 9256561362
7 changed files with 10 additions and 6 deletions

View File

@@ -90,7 +90,7 @@ where
/// This means it includes a timestamp, follows [OpenTelemetry Semantic
/// Conventions for Exceptions](https://opentelemetry.io/docs/reference/specification/logs/semantic_conventions/exceptions/),
/// etc.
fn panic_hook(p: &std::panic::PanicInfo) {
fn panic_hook(p: &std::panic::PanicHookInfo) {
let payload: Option<&str> = if let Some(s) = p.payload().downcast_ref::<&str>() {
Some(*s)
} else if let Some(s) = p.payload().downcast_ref::<String>() {