Skip to content

Commit

Permalink
No need for the conditional unless logging
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Oct 24, 2023
1 parent bd34306 commit ad6727a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/segmenter/src/rule_segmenter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ impl<'l, 's, Y: RuleBreakType<'l, 's> + ?Sized> Iterator for RuleBreakIterator<'
let mut previous_pos_data = self.current_pos_data;
let mut previous_left_prop = left_prop;

if (break_state & INTERMEDIATE_MATCH_RULE) != 0 {
break_state &= !INTERMEDIATE_MATCH_RULE;
}
break_state &= !INTERMEDIATE_MATCH_RULE;
loop {
self.advance_iter();

Expand Down

0 comments on commit ad6727a

Please sign in to comment.