Skip to content

Commit

Permalink
chore: reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
igordejanovic committed Nov 16, 2024
1 parent ebe98ba commit 236f374
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rustemo-compiler/src/grammar/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand All @@ -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()
}
Expand Down

0 comments on commit 236f374

Please sign in to comment.