From 5ba5e6b672168402b5d10adca868d65203add906 Mon Sep 17 00:00:00 2001 From: Specy Date: Mon, 18 Nov 2024 16:08:43 +0100 Subject: [PATCH] lint --- src/tables.rs | 2 +- tests/parser.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tables.rs b/src/tables.rs index 35c72e6..3769e1a 100644 --- a/src/tables.rs +++ b/src/tables.rs @@ -13,7 +13,7 @@ impl FirstTable { pub fn construct(grammar: &Grammar) -> FirstTable { let mut first_table = IndexMap::new(); let mut indirectly_empty_symbols = IndexSet::new(); - + let mut done = false; while !done { done = true; diff --git a/tests/parser.rs b/tests/parser.rs index b82bbb0..936587e 100644 --- a/tests/parser.rs +++ b/tests/parser.rs @@ -149,7 +149,7 @@ fn raising_correct_error_when_creating_lalr_parser_for_non_lalr_grammar() { fn correctly_creating_first_and_follow_sets_for_indirectly_empty_grammar() { let grammar = Grammar::parse(common::grammars::INDIRECT_EMPTY).unwrap(); let parser = Parser::lr(grammar).unwrap(); - + let first_table = parser.first_table(); { // +--------+-----------+