File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ use crate::dialect::*;
29
29
use crate :: keywords:: { self , Keyword } ;
30
30
use crate :: tokenizer:: * ;
31
31
32
- #[ derive( Debug , Clone , PartialEq ) ]
32
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
33
33
pub enum ParserError {
34
34
TokenizerError ( String ) ,
35
35
ParserError ( String ) ,
@@ -51,7 +51,7 @@ macro_rules! return_ok_if_some {
51
51
} } ;
52
52
}
53
53
54
- #[ derive( PartialEq ) ]
54
+ #[ derive( PartialEq , Eq ) ]
55
55
pub enum IsOptional {
56
56
Optional ,
57
57
Mandatory ,
@@ -848,7 +848,7 @@ impl<'a> Parser<'a> {
848
848
r#in : Box :: new ( from) ,
849
849
} )
850
850
} else {
851
- return parser_err ! ( "Position function must include IN keyword" . to_string( ) ) ;
851
+ parser_err ! ( "Position function must include IN keyword" . to_string( ) )
852
852
}
853
853
}
854
854
@@ -1745,7 +1745,7 @@ impl<'a> Parser<'a> {
1745
1745
let all = self . parse_keyword ( Keyword :: ALL ) ;
1746
1746
let distinct = self . parse_keyword ( Keyword :: DISTINCT ) ;
1747
1747
if all && distinct {
1748
- return parser_err ! ( "Cannot specify both ALL and DISTINCT" . to_string( ) ) ;
1748
+ parser_err ! ( "Cannot specify both ALL and DISTINCT" . to_string( ) )
1749
1749
} else {
1750
1750
Ok ( distinct)
1751
1751
}
Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ impl fmt::Display for Whitespace {
301
301
}
302
302
303
303
/// Tokenizer error
304
- #[ derive( Debug , PartialEq ) ]
304
+ #[ derive( Debug , PartialEq , Eq ) ]
305
305
pub struct TokenizerError {
306
306
pub message : String ,
307
307
pub line : u64 ,
You can’t perform that action at this time.
0 commit comments