Skip to content

Commit aefd58f

Browse files
jeremystuckiBurntSushi
authored andcommitted
style: simplify if statement
Closes #614
1 parent ac3c3e7 commit aefd58f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/exec.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -691,9 +691,7 @@ impl<'c> ExecNoSync<'c> {
691691
}
692692
AnchoredStart => {
693693
let lits = &self.ro.nfa.prefixes;
694-
if !self.ro.nfa.is_anchored_start
695-
|| (self.ro.nfa.is_anchored_start && start == 0)
696-
{
694+
if start == 0 || !self.ro.nfa.is_anchored_start {
697695
lits.find_start(&text[start..])
698696
.map(|(s, e)| (start + s, start + e))
699697
} else {

0 commit comments

Comments
 (0)