style: apply rustfmt
Maybe 2024 changes? Note that we now set `edition = "2024"` explicitly in `rustfmt.toml`. Without this, it seems like it's possible in some cases for rustfmt to run under an older edition's style. Not sure how though.
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
use {
|
||||
regex_automata::meta::Regex,
|
||||
regex_syntax::hir::{
|
||||
self,
|
||||
self, Hir,
|
||||
literal::{Literal, Seq},
|
||||
Hir,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -223,11 +222,7 @@ impl Extractor {
|
||||
// extracting prefixes or suffixes.
|
||||
seq = self.cross(seq, self.extract(hir));
|
||||
}
|
||||
if let Some(prev) = prev {
|
||||
prev.choose(seq)
|
||||
} else {
|
||||
seq
|
||||
}
|
||||
if let Some(prev) = prev { prev.choose(seq) } else { seq }
|
||||
}
|
||||
|
||||
/// Extract a sequence from the given alternation.
|
||||
|
||||
Reference in New Issue
Block a user