From 5ac48ec82623433bc6dbf62ce8c101eeec12648d Mon Sep 17 00:00:00 2001 From: Mark Mansi Date: Thu, 18 Jan 2018 21:18:04 -0600 Subject: [PATCH] Run rustfmt on macro_parser.rs --- src/libsyntax/ext/tt/macro_parser.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs index 88144b196098..e067bbecce28 100644 --- a/src/libsyntax/ext/tt/macro_parser.rs +++ b/src/libsyntax/ext/tt/macro_parser.rs @@ -487,7 +487,9 @@ fn inner_parse_loop( // Need to descend into a sequence TokenTree::Sequence(sp, seq) => { // Examine the case where there are 0 matches of this sequence - if seq.op == quoted::KleeneOp::ZeroOrMore || seq.op == quoted::KleeneOp::ZeroOrOne { + if seq.op == quoted::KleeneOp::ZeroOrMore + || seq.op == quoted::KleeneOp::ZeroOrOne + { let mut new_item = item.clone(); new_item.match_cur += seq.num_captures; new_item.idx += 1; @@ -500,9 +502,9 @@ fn inner_parse_loop( // For ZeroOrMore and OneOrMore, we want to examine the case were there is at // least one match. For ZeroOrOne, we only want the case where there is exactly // one match. - if (seq.op == quoted::KleeneOp::ZeroOrOne && seq.num_captures == 1) || - seq.op != quoted::KleeneOp::ZeroOrOne { - + if (seq.op == quoted::KleeneOp::ZeroOrOne && seq.num_captures == 1) + || seq.op != quoted::KleeneOp::ZeroOrOne + { let matches = create_matches(item.matches.len()); cur_items.push(Box::new(MatcherPos { stack: vec![],