This commit is contained in:
d0cd 2022-10-24 22:59:18 -07:00
parent e07887e9c7
commit 8ae7c0da99

View File

@ -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,
) )
} }