mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-19 21:50:19 +00:00
Fix new clippy errors (#412)
This commit is contained in:
parent
fbc1d9659b
commit
5cbf1e797a
4 changed files with 14 additions and 5 deletions
|
@ -2649,7 +2649,7 @@ impl<'a> Parser<'a> {
|
|||
};
|
||||
|
||||
// Not Sure if Top should be cheked here as well. Trino doesn't support TOP.
|
||||
let is_l_parent = if distinct {
|
||||
let is_l_paren = if distinct {
|
||||
self.consume_token(&Token::LParen)
|
||||
} else {
|
||||
false
|
||||
|
@ -2657,8 +2657,8 @@ impl<'a> Parser<'a> {
|
|||
|
||||
let projection = self.parse_comma_separated(Parser::parse_select_item)?;
|
||||
|
||||
if is_l_parent {
|
||||
self.consume_token(&Token::RParen);
|
||||
if is_l_paren && !self.consume_token(&Token::RParen) {
|
||||
return self.expected(")", self.peek_token());
|
||||
}
|
||||
|
||||
// Note that for keywords to be properly handled here, they need to be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue