From 236f374d5e1f5889dea0214415d165d7bd1783a0 Mon Sep 17 00:00:00 2001 From: Igor Dejanovic Date: Sat, 16 Nov 2024 14:24:37 +0100 Subject: [PATCH] chore: reformat code --- rustemo-compiler/src/grammar/mod.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/rustemo-compiler/src/grammar/mod.rs b/rustemo-compiler/src/grammar/mod.rs index 5e69342..5da95ff 100644 --- a/rustemo-compiler/src/grammar/mod.rs +++ b/rustemo-compiler/src/grammar/mod.rs @@ -485,9 +485,7 @@ impl Grammar { .iter() .filter(|&p| { let nt_symbol = self.nonterm_to_symbol_index(p.nonterminal); - nt_symbol != self.augmented_index - && self - .augmented_layout_index != Some(nt_symbol) + nt_symbol != self.augmented_index && self.augmented_layout_index != Some(nt_symbol) }) .collect() } @@ -500,8 +498,7 @@ impl Grammar { let nt_symbol = self.nonterm_to_symbol_index(n.idx); nt_symbol != self.empty_index && nt_symbol != self.augmented_index - && self - .augmented_layout_index != Some(nt_symbol) + && self.augmented_layout_index != Some(nt_symbol) }) .collect() }