fix: we weren't including the name unused var warning

This commit is contained in:
rvcas
2023-04-20 16:53:56 -04:00
parent 2a8488d3c1
commit c9a762a13c
2 changed files with 8 additions and 1 deletions

View File

@@ -1376,7 +1376,10 @@ pub enum Warning {
name: String,
},
#[error("I came across an unused variable.\n")]
#[error(
"I came across an unused variable: {}.\n",
name.if_supports_color(Stderr, |s| s.purple())
)]
#[diagnostic(help("{}", formatdoc! {
r#"No big deal, but you might want to remove it to get rid of that warning.