File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ use crate::dialect::*;
2929use crate :: keywords:: { self , Keyword } ;
3030use crate :: tokenizer:: * ;
3131
32- #[ derive( Debug , Clone , PartialEq ) ]
32+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
3333pub 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 ) ]
5555pub 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 }
Original file line number Diff line number Diff 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 ) ]
290290pub struct TokenizerError {
291291 pub message : String ,
292292 pub line : u64 ,
You can’t perform that action at this time.
0 commit comments