Skip to content

Commit 988c405

Browse files
authored
appease rustfmt
1 parent b308817 commit 988c405

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regex-syntax/src/hir/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3103,7 +3103,7 @@ fn lift_common_suffix(hirs: Vec<Hir>) -> Result<Vec<Hir>, Vec<Hir>> {
31033103
.zip(concat.iter().rev())
31043104
.take_while(|(x, y)| x == y)
31053105
.count();
3106-
suffix = &suffix[suffix.len()-common_len..];
3106+
suffix = &suffix[suffix.len() - common_len..];
31073107
if suffix.is_empty() {
31083108
return Err(hirs);
31093109
}
@@ -3120,7 +3120,7 @@ fn lift_common_suffix(hirs: Vec<Hir>) -> Result<Vec<Hir>, Vec<Hir>> {
31203120
// have a concat.
31213121
_ => unreachable!(),
31223122
};
3123-
let suffix = concat.split_off(concat.len()-len);
3123+
let suffix = concat.split_off(concat.len() - len);
31243124
prefix_alts.push(Hir::concat(concat));
31253125
if suffix_concat.is_empty() {
31263126
suffix_concat = suffix;

0 commit comments

Comments
 (0)