File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -487,7 +487,9 @@ fn inner_parse_loop(
487
487
// Need to descend into a sequence
488
488
TokenTree :: Sequence ( sp, seq) => {
489
489
// Examine the case where there are 0 matches of this sequence
490
- if seq. op == quoted:: KleeneOp :: ZeroOrMore || seq. op == quoted:: KleeneOp :: ZeroOrOne {
490
+ if seq. op == quoted:: KleeneOp :: ZeroOrMore
491
+ || seq. op == quoted:: KleeneOp :: ZeroOrOne
492
+ {
491
493
let mut new_item = item. clone ( ) ;
492
494
new_item. match_cur += seq. num_captures ;
493
495
new_item. idx += 1 ;
@@ -500,9 +502,9 @@ fn inner_parse_loop(
500
502
// For ZeroOrMore and OneOrMore, we want to examine the case were there is at
501
503
// least one match. For ZeroOrOne, we only want the case where there is exactly
502
504
// one match.
503
- if ( seq. op == quoted:: KleeneOp :: ZeroOrOne && seq. num_captures == 1 ) ||
504
- seq. op != quoted:: KleeneOp :: ZeroOrOne {
505
-
505
+ if ( seq. op == quoted:: KleeneOp :: ZeroOrOne && seq. num_captures == 1 )
506
+ || seq. op != quoted:: KleeneOp :: ZeroOrOne
507
+ {
506
508
let matches = create_matches ( item. matches . len ( ) ) ;
507
509
cur_items. push ( Box :: new ( MatcherPos {
508
510
stack : vec ! [ ] ,
You can’t perform that action at this time.
0 commit comments