mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
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:
committed by
GitHub
parent
dc0720b32a
commit
c92707433e
+2
-2
@@ -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(),
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user