Skip to content

Commit

Permalink
Update for new clippy ints (sqlparser-rs#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb authored and MazterQyou committed Aug 24, 2022
1 parent e9f7462 commit ed7ccc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/parser.rs
Expand Up @@ -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),
Expand All @@ -51,7 +51,7 @@ macro_rules! return_ok_if_some {
}};
}

#[derive(PartialEq)]
#[derive(PartialEq, Eq)]
pub enum IsOptional {
Optional,
Mandatory,
Expand Down Expand Up @@ -1576,7 +1576,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)
}
Expand Down
2 changes: 1 addition & 1 deletion src/tokenizer.rs
Expand Up @@ -286,7 +286,7 @@ impl fmt::Display for Whitespace {
}

/// Tokenizer error
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub struct TokenizerError {
pub message: String,
pub line: u64,
Expand Down

0 comments on commit ed7ccc8

Please sign in to comment.