Skip to content

Commit 433e4ca

Browse files
committed
Fixing method call issue in parser.
1 parent 8b12892 commit 433e4ca

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/librustsyntax/parse/parser.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,11 +1676,9 @@ class parser {
16761676
let ident = self.parse_ident();
16771677
if self.eat(token::COLON) {
16781678
while self.token != token::COMMA && self.token != token::GT {
1679-
if self.eat_keyword(self, "send") { bounds += [bound_send]; }
1680-
else if self.eat_keyword(self, "copy")
1681-
{ bounds += [bound_copy]; }
1682-
else if self.eat_keyword(self, "const")
1683-
{ bounds += [bound_const]; }
1679+
if self.eat_keyword("send") { bounds += [bound_send]; }
1680+
else if self.eat_keyword("copy") { bounds += [bound_copy]; }
1681+
else if self.eat_keyword("const") { bounds += [bound_const]; }
16841682
else { bounds += [bound_iface(self.parse_ty(false))]; }
16851683
}
16861684
}

0 commit comments

Comments
 (0)