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
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
2 changed files with 8 additions and 1 deletions

View File

@ -9,6 +9,10 @@
### Fixed ### Fixed
- **aiken-lang**: Add name of var to the unused var warning
### Fixed
- **aiken**: fixed 'new' instructions to properly show project name and folder - **aiken**: fixed 'new' instructions to properly show project name and folder
## v1.0.2.alpha - 2023-04-17 ## v1.0.2.alpha - 2023-04-17

View File

@ -1376,7 +1376,10 @@ pub enum Warning {
name: String, 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! { #[diagnostic(help("{}", formatdoc! {
r#"No big deal, but you might want to remove it to get rid of that warning. r#"No big deal, but you might want to remove it to get rid of that warning.