]> git.lizzy.rs Git - rust.git/commitdiff
Run rustfmt on macro_parser.rs
authorMark Mansi <markm@cs.wisc.edu>
Fri, 19 Jan 2018 03:18:04 +0000 (21:18 -0600)
committerMark Mansi <markm@cs.wisc.edu>
Tue, 30 Jan 2018 18:38:02 +0000 (12:38 -0600)
src/libsyntax/ext/tt/macro_parser.rs

index 88144b19609800357b8d2cb07aee0d845d007c0b..e067bbecce28f0a3ca254be449e277d307eeab2d 100644 (file)
@@ -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![],