fix: we weren't including the name unused var warning
This commit is contained in:
parent
2a8488d3c1
commit
c9a762a13c
|
@ -9,6 +9,10 @@
|
|||
|
||||
### Fixed
|
||||
|
||||
- **aiken-lang**: Add name of var to the unused var warning
|
||||
|
||||
### Fixed
|
||||
|
||||
- **aiken**: fixed 'new' instructions to properly show project name and folder
|
||||
|
||||
## v1.0.2.alpha - 2023-04-17
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue