fix(error): use the positional way to format docs url

This commit is contained in:
ManicMarrc 2023-10-17 04:49:17 +07:00
parent 84f820477d
commit 2450afce9e
1 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,8 @@ impl Diagnostic for MietteError {
fn url<'a>(&'a self) -> Option<Box<dyn fmt::Display + 'a>> {
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,
)))
}
}