Skip to content

Commit 5ac48ec

Browse files
committed
Run rustfmt on macro_parser.rs
1 parent 711f71c commit 5ac48ec

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/libsyntax/ext/tt/macro_parser.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ fn inner_parse_loop(
487487
// Need to descend into a sequence
488488
TokenTree::Sequence(sp, seq) => {
489489
// 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+
{
491493
let mut new_item = item.clone();
492494
new_item.match_cur += seq.num_captures;
493495
new_item.idx += 1;
@@ -500,9 +502,9 @@ fn inner_parse_loop(
500502
// For ZeroOrMore and OneOrMore, we want to examine the case were there is at
501503
// least one match. For ZeroOrOne, we only want the case where there is exactly
502504
// 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+
{
506508
let matches = create_matches(item.matches.len());
507509
cur_items.push(Box::new(MatcherPos {
508510
stack: vec![],

0 commit comments

Comments
 (0)