Improvements to github workflow (#4)

- format check
- clippy checks
- build tests separately before running

Also fix clippy warnings

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2023-02-10 11:16:09 +05:30
committed by GitHub
parent dc0720b32a
commit c92707433e
9 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ impl<'source> Parser<'source> {
if self.tok.1.text() == text {
self.next_token()
} else {
let msg = format!("expecting `{}` {}", text, context);
let msg = format!("expecting `{text}` {context}");
Err(self.source.error(self.tok.1.line, self.tok.1.col, &msg))
}
}
@@ -801,7 +801,7 @@ impl<'source> Parser<'source> {
return Err(self.source.error(
span.line,
span.col,
format!("Failed to parse `every` statement.\n{}", e).as_str(),
format!("Failed to parse `every` statement.\n{e}").as_str(),
))
}
}