From 4f795e94bcd99fa664e2dfcb70ef2aab1c49f7a4 Mon Sep 17 00:00:00 2001 From: Ryan Chandler Date: Thu, 15 Sep 2022 01:17:48 +0100 Subject: [PATCH] chore: format --- trunk_parser/src/parser/mod.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/trunk_parser/src/parser/mod.rs b/trunk_parser/src/parser/mod.rs index 78b6959..3b7e0a1 100644 --- a/trunk_parser/src/parser/mod.rs +++ b/trunk_parser/src/parser/mod.rs @@ -179,14 +179,14 @@ impl Parser { self.semi()?; Statement::Goto { label } - }, + } TokenKind::Identifier(_) if self.peek.kind == TokenKind::Colon => { let label = self.ident()?.into(); expect!(self, TokenKind::Colon, "expected :"); Statement::Label { label } - }, + } TokenKind::HaltCompiler => { self.next(); @@ -4096,16 +4096,12 @@ mod tests { #[test] fn simple_goto() { - assert_ast("