From 3f351ff3681c6a501a8d8fc36e3d6d2e9913e22a Mon Sep 17 00:00:00 2001 From: nogiro Date: Sat, 1 Mar 2025 10:00:56 +0900 Subject: [PATCH] fix `ambiguous reference` caused by https://github.com/dtolnay/thiserror/pull/354 - This resolves the error of the CI `Miri`: https://github.com/zkat/miette/actions/runs/13572762043/job/37952795757 --- src/panic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panic.rs b/src/panic.rs index c258b32..123ab68 100644 --- a/src/panic.rs +++ b/src/panic.rs @@ -26,7 +26,7 @@ pub fn set_panic_hook() { } #[derive(Debug, Error, Diagnostic)] -#[error("{0}{}", Panic::backtrace())] +#[error("{0}{panic}", panic = Panic::backtrace())] #[diagnostic(help("set the `RUST_BACKTRACE=1` environment variable to display a backtrace."))] struct Panic(String);