mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 23:23:50 +03:00
clippy
This commit is contained in:
parent
4fcce10329
commit
112efb100c
@ -315,8 +315,9 @@ impl ParserContext {
|
||||
let declare = self.expect_oneof(&[Token::Let, Token::Const])?;
|
||||
let mut variable_names = Vec::new();
|
||||
|
||||
if self.eat(Token::LeftParen).is_some() {
|
||||
variable_names.push(self.parse_variable_name(&declare)?);
|
||||
let next = self.eat(Token::LeftParen);
|
||||
variable_names.push(self.parse_variable_name(&declare)?);
|
||||
if next.is_some() {
|
||||
let mut eaten_ending = false;
|
||||
while self.eat(Token::Comma).is_some() {
|
||||
if self.eat(Token::RightParen).is_some() {
|
||||
@ -328,8 +329,6 @@ impl ParserContext {
|
||||
if !eaten_ending {
|
||||
self.expect(Token::RightParen)?;
|
||||
}
|
||||
} else {
|
||||
variable_names.push(self.parse_variable_name(&declare)?);
|
||||
}
|
||||
|
||||
let type_ = if self.eat(Token::Colon).is_some() {
|
||||
|
Loading…
Reference in New Issue
Block a user