diff --git a/Cargo.toml b/Cargo.toml index 896e940..eba604b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ rust-version = "1.70.0" exclude = ["images/", "tests/", "miette-derive/"] [dependencies] -thiserror = "1.0.56" +thiserror = "2.0.11" miette-derive = { path = "miette-derive", version = "=7.5.0", optional = true } unicode-width = "0.1.11" cfg-if = "1.0.0" @@ -37,7 +37,7 @@ futures = { version = "0.3", default-features = false } indenter = "0.3.3" rustversion = "1.0" trybuild = { version = "1.0.89", features = ["diff"] } -syn = { version = "2.0.48", features = ["full"] } +syn = { version = "2.0.87", features = ["full"] } regex = "1.10" lazy_static = "1.4" diff --git a/miette-derive/Cargo.toml b/miette-derive/Cargo.toml index 9a27562..28f2465 100644 --- a/miette-derive/Cargo.toml +++ b/miette-derive/Cargo.toml @@ -11,6 +11,6 @@ repository = "https://github.com/zkat/miette" proc-macro = true [dependencies] -proc-macro2 = "1.0.78" +proc-macro2 = "1.0.83" quote = "1.0.35" -syn = "2.0.48" +syn = "2.0.87" 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);