diff --git a/src/main.rs b/src/main.rs index f14729a..7080f0e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -162,7 +162,8 @@ async fn main() -> anyhow::Result<()> { Err(err) => { let err = err .downcast::() - .unwrap_or_else(|_| Box::new("?".to_owned())); + .map(|err| *err) + .unwrap_or_else(|_| "?".to_owned()); Some(format!("panic at: {err}")) }