mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-09 21:42:05 +00:00
fix new rust 1.87 cargo clippy warnings (#1856)
This commit is contained in:
parent
ae587dcbec
commit
e7bf186e44
4 changed files with 14 additions and 10 deletions
|
@ -2558,10 +2558,7 @@ impl<'a> Parser<'a> {
|
|||
self.expect_token(&Token::LParen)?;
|
||||
let mut trim_where = None;
|
||||
if let Token::Word(word) = self.peek_token().token {
|
||||
if [Keyword::BOTH, Keyword::LEADING, Keyword::TRAILING]
|
||||
.iter()
|
||||
.any(|d| word.keyword == *d)
|
||||
{
|
||||
if [Keyword::BOTH, Keyword::LEADING, Keyword::TRAILING].contains(&word.keyword) {
|
||||
trim_where = Some(self.parse_trim_where()?);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue