diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-01-19 19:21:14 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-01-21 22:00:18 +1100 |
| commit | 39713b829535b40aff2b7f368839d07ea7c2bf11 (patch) | |
| tree | 897cd7f2eb52770a2dd4d4c69efc47e1ecc7b4f7 /src/libsyntax/parse/parser.rs | |
| parent | 39012288118146331add60f2b1c90b07b6a6c51b (diff) | |
| download | rust-39713b829535b40aff2b7f368839d07ea7c2bf11.tar.gz rust-39713b829535b40aff2b7f368839d07ea7c2bf11.zip | |
Remove unnecessary parentheses.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index e79c845b24d..3a5e737e026 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -3393,7 +3393,7 @@ impl Parser { let mut attributes_box = attrs_remaining; - while (self.token != token::RBRACE) { + while self.token != token::RBRACE { // parsing items even when they're not allowed lets us give // better error messages and recover more gracefully. attributes_box.push_all(self.parse_outer_attributes()); @@ -4373,7 +4373,7 @@ impl Parser { items: _, foreign_items: foreign_items } = self.parse_foreign_items(first_item_attrs, true); - if (! attrs_remaining.is_empty()) { + if ! attrs_remaining.is_empty() { self.span_err(self.last_span, "expected item after attributes"); } @@ -4553,7 +4553,7 @@ impl Parser { if !self.eat(&token::COMMA) { break; } } self.expect(&token::RBRACE); - if (have_disr && !all_nullary) { + if have_disr && !all_nullary { self.fatal("discriminator values can only be used with a c-like \ enum"); } |
