Skip to content

Fix new clippy errors#412

Merged
alamb merged 1 commit into
apache:mainfrom
alamb:alamb/fixup_clippy_again
Feb 5, 2022
Merged

Fix new clippy errors#412
alamb merged 1 commit into
apache:mainfrom
alamb:alamb/fixup_clippy_again

Conversation

@alamb

@alamb alamb commented Feb 5, 2022

Copy link
Copy Markdown
Contributor

Fixes new clippy lints introduced in newer rustc releases

Also check for missing paren in code added in #391 (found by clippy lint)

Comment thread src/parser.rs

if is_l_parent {
self.consume_token(&Token::RParen);
if is_l_paren && !self.consume_token(&Token::RParen) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clippy was complaining (rightly) that the return value from consume_token was not used

@coveralls

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 1799295859

  • 10 of 10 (100.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.007%) to 90.293%

Totals Coverage Status
Change from base Build 1799277197: 0.007%
Covered Lines: 6725
Relevant Lines: 7448

💛 - Coveralls

Comment thread tests/sqlparser_common.rs
}

#[test]
fn parse_select_distinct_missing_paren() {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test for new code

@alamb alamb merged commit 5cbf1e7 into apache:main Feb 5, 2022
@alamb alamb deleted the alamb/fixup_clippy_again branch February 5, 2022 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants