Corrected formatting on keyword element warning
The formatting argument is now only passed once.
This commit is contained in:
parent
5a74dd0232
commit
485ee13afb
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ impl Parser {
|
||||||
match ident_string.as_str() {
|
match ident_string.as_str() {
|
||||||
"if" | "while" | "for" | "match" | "let" => {
|
"if" | "while" | "for" | "match" | "let" => {
|
||||||
ident.span()
|
ident.span()
|
||||||
.warning(format!("found keyword `{}` - should this be a `@{}`?", ident_string, ident_string))
|
.warning(format!("found keyword `{0}` - should this be a `@{0}`?", ident_string))
|
||||||
.emit();
|
.emit();
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
|
|
Loading…
Add table
Reference in a new issue