mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-16 20:20:15 +00:00
Update for new clippy ints (#571)
This commit is contained in:
parent
f07063f0cd
commit
36de9a69c6
2 changed files with 5 additions and 5 deletions
|
@ -29,7 +29,7 @@ use crate::dialect::*;
|
|||
use crate::keywords::{self, Keyword};
|
||||
use crate::tokenizer::*;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum ParserError {
|
||||
TokenizerError(String),
|
||||
ParserError(String),
|
||||
|
@ -51,7 +51,7 @@ macro_rules! return_ok_if_some {
|
|||
}};
|
||||
}
|
||||
|
||||
#[derive(PartialEq)]
|
||||
#[derive(PartialEq, Eq)]
|
||||
pub enum IsOptional {
|
||||
Optional,
|
||||
Mandatory,
|
||||
|
@ -848,7 +848,7 @@ impl<'a> Parser<'a> {
|
|||
r#in: Box::new(from),
|
||||
})
|
||||
} else {
|
||||
return parser_err!("Position function must include IN keyword".to_string());
|
||||
parser_err!("Position function must include IN keyword".to_string())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1745,7 +1745,7 @@ impl<'a> Parser<'a> {
|
|||
let all = self.parse_keyword(Keyword::ALL);
|
||||
let distinct = self.parse_keyword(Keyword::DISTINCT);
|
||||
if all && distinct {
|
||||
return parser_err!("Cannot specify both ALL and DISTINCT".to_string());
|
||||
parser_err!("Cannot specify both ALL and DISTINCT".to_string())
|
||||
} else {
|
||||
Ok(distinct)
|
||||
}
|
||||
|
|
|
@ -301,7 +301,7 @@ impl fmt::Display for Whitespace {
|
|||
}
|
||||
|
||||
/// Tokenizer error
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
pub struct TokenizerError {
|
||||
pub message: String,
|
||||
pub line: u64,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue