mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-26 11:45:00 +03:00
Fmt
This commit is contained in:
parent
e07887e9c7
commit
8ae7c0da99
@ -66,11 +66,7 @@ impl ParserContext<'_> {
|
|||||||
fn unexpected_item(token: &SpannedToken, expected: &[Token]) -> ParserError {
|
fn unexpected_item(token: &SpannedToken, expected: &[Token]) -> ParserError {
|
||||||
ParserError::unexpected(
|
ParserError::unexpected(
|
||||||
&token.token,
|
&token.token,
|
||||||
expected
|
expected.iter().map(|x| format!("'{x}'")).collect::<Vec<_>>().join(", "),
|
||||||
.iter()
|
|
||||||
.map(|x| format!("'{x}'"))
|
|
||||||
.collect::<Vec<_>>()
|
|
||||||
.join(", "),
|
|
||||||
token.span,
|
token.span,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user