Skip to content

Commit 952bb1b

Browse files
alambMazterQyou
authored andcommitted
Update for new clippy ints (apache#571)
1 parent e940876 commit 952bb1b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/parser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use crate::dialect::*;
2929
use crate::keywords::{self, Keyword};
3030
use crate::tokenizer::*;
3131

32-
#[derive(Debug, Clone, PartialEq)]
32+
#[derive(Debug, Clone, PartialEq, Eq)]
3333
pub enum ParserError {
3434
TokenizerError(String),
3535
ParserError(String),
@@ -51,7 +51,7 @@ macro_rules! return_ok_if_some {
5151
}};
5252
}
5353

54-
#[derive(PartialEq)]
54+
#[derive(PartialEq, Eq)]
5555
pub enum IsOptional {
5656
Optional,
5757
Mandatory,
@@ -1576,7 +1576,7 @@ impl<'a> Parser<'a> {
15761576
let all = self.parse_keyword(Keyword::ALL);
15771577
let distinct = self.parse_keyword(Keyword::DISTINCT);
15781578
if all && distinct {
1579-
return parser_err!("Cannot specify both ALL and DISTINCT".to_string());
1579+
parser_err!("Cannot specify both ALL and DISTINCT".to_string())
15801580
} else {
15811581
Ok(distinct)
15821582
}

src/tokenizer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ impl fmt::Display for Whitespace {
286286
}
287287

288288
/// Tokenizer error
289-
#[derive(Debug, PartialEq)]
289+
#[derive(Debug, PartialEq, Eq)]
290290
pub struct TokenizerError {
291291
pub message: String,
292292
pub line: u64,

0 commit comments

Comments
 (0)