Skip to content

Commit

Permalink
fix comment indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
skius committed Aug 9, 2023
1 parent 2f70922 commit 06425a1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions experimental/transliterator_parser/src/compile/rule_group_agg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ impl<'p> ForwardRuleGroupAggregator<'p> {

pub(crate) fn finalize(mut self) -> RuleGroups<'p> {
// push the current group
self.push_rule_group(self.current.clone()); // note: refactoring could get rid of clone
// push any remaining group pairs
// note: refactoring could get rid of clone
self.push_rule_group(self.current.clone());
// push any remaining group pairs
if let Some(transform_group) = self.preceding_transform_group.take() {
self.groups.push((transform_group, Vec::new()));
}
Expand Down Expand Up @@ -270,8 +271,9 @@ impl<'p> ReverseRuleGroupAggregator<'p> {

pub(crate) fn finalize(mut self) -> RuleGroups<'p> {
// push the current group
self.push_rule_group(self.current.clone()); // note: refactoring could get rid of clone
// push any remaining group pairs
// note: refactoring could get rid of clone
self.push_rule_group(self.current.clone());
// push any remaining group pairs
if let Some(conv_group) = self.preceding_conversion_group.take() {
// a trailing conversion group in source order is the same as having a conversion
// group as the first in-order group. we can just prepend an empty transform group.
Expand Down

0 comments on commit 06425a1

Please sign in to comment.