From 4977ab7932f244173cc5eac741399303d9163435 Mon Sep 17 00:00:00 2001 From: raskad <32105367+raskad@users.noreply.github.com> Date: Mon, 4 Jul 2022 19:09:28 +0200 Subject: [PATCH] Fix fmt --- boa_engine/src/syntax/parser/expression/unary.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/boa_engine/src/syntax/parser/expression/unary.rs b/boa_engine/src/syntax/parser/expression/unary.rs index fff60919fcd..eb1ef9389da 100644 --- a/boa_engine/src/syntax/parser/expression/unary.rs +++ b/boa_engine/src/syntax/parser/expression/unary.rs @@ -120,9 +120,12 @@ where cursor.next(interner)?.expect("! token vanished"); // Consume the token. Ok(node::UnaryOp::new(UnaryOp::Not, self.parse(cursor, interner)?).into()) } - TokenKind::Keyword((Keyword::Await, true)) if self.allow_await.0 => Err( - ParseError::general("Keyword 'await' must not contain escaped characters", token_start), - ), + TokenKind::Keyword((Keyword::Await, true)) if self.allow_await.0 => { + Err(ParseError::general( + "Keyword 'await' must not contain escaped characters", + token_start, + )) + } TokenKind::Keyword((Keyword::Await, false)) if self.allow_await.0 => { Ok((AwaitExpression::new(self.allow_yield).parse(cursor, interner)?).into()) }