From 8ae7c0da99fba446e435ed2de4671375fcc89b3e Mon Sep 17 00:00:00 2001 From: d0cd Date: Mon, 24 Oct 2022 22:59:18 -0700 Subject: [PATCH] Fmt --- compiler/parser/src/parser/file.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/compiler/parser/src/parser/file.rs b/compiler/parser/src/parser/file.rs index 06ba5a5c9d..673ed2f554 100644 --- a/compiler/parser/src/parser/file.rs +++ b/compiler/parser/src/parser/file.rs @@ -66,11 +66,7 @@ impl ParserContext<'_> { fn unexpected_item(token: &SpannedToken, expected: &[Token]) -> ParserError { ParserError::unexpected( &token.token, - expected - .iter() - .map(|x| format!("'{x}'")) - .collect::>() - .join(", "), + expected.iter().map(|x| format!("'{x}'")).collect::>().join(", "), token.span, ) }