about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorkeatinge <willy.keatinge@gmail.com>2018-01-06 10:05:02 -0500
committerkeatinge <willy.keatinge@gmail.com>2018-01-06 10:05:02 -0500
commit4436bca5af397da88854900508ae9726ee117e26 (patch)
tree049f22313dae9745a952e9e39f568194690d0eb3 /src/libsyntax/parse/parser.rs
parentdcb53d754bed44ad72edf19889daf06e54a70a5b (diff)
downloadrust-4436bca5af397da88854900508ae9726ee117e26.tar.gz
rust-4436bca5af397da88854900508ae9726ee117e26.zip
fix style
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 3fd73418df5..897f199f25e 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -3437,11 +3437,9 @@ impl<'a> Parser<'a> {
                                    "unexpected token `||` after pattern",
                                    "did you mean to use `|` to specify multiple patterns?");
                 self.bump();
-            }
-            else if self.check(&token::BinOp(token::Or)) {
+            } else if self.check(&token::BinOp(token::Or)) {
                 self.bump();
-            }
-            else {
+            } else {
                 return Ok(pats);
             }
         };