From 2450afce9ef247b6d415e38548fa41ebd33ef312 Mon Sep 17 00:00:00 2001 From: ManicMarrc Date: Tue, 17 Oct 2023 04:49:17 +0700 Subject: [PATCH] fix(error): use the positional way to format docs url --- src/error.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index 3f50e77..206d693 100644 --- a/src/error.rs +++ b/src/error.rs @@ -40,7 +40,8 @@ impl Diagnostic for MietteError { fn url<'a>(&'a self) -> Option> { let crate_version = env!("CARGO_PKG_VERSION"); Some(Box::new(format!( - "https://docs.rs/miette/{crate_version}/miette/enum.MietteError.html" + "https://docs.rs/miette/{}/miette/enum.MietteError.html", + crate_version, ))) } }