File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ pub struct WithSpan<'a, T> {
123123impl < ' a , T : PartialEq > PartialEq for WithSpan < ' a , T > {
124124 fn eq ( & self , other : & Self ) -> bool {
125125 self . elem == other. elem
126- && self . span . tokens . as_ptr ( ) == other. span . tokens . as_ptr ( )
126+ && std :: ptr :: eq ( self . span . tokens . as_ptr ( ) , other. span . tokens . as_ptr ( ) )
127127 && self . span . tokens . len ( ) == other. span . tokens . len ( )
128128 }
129129}
Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ fn parse_set_operation_elements<'a>(
346346 ) ;
347347
348348 match parser ( elements. as_slice ( ) ) {
349- Ok ( ( remaining , expr) ) if remaining . is_empty ( ) => Ok ( ( rest, expr) ) ,
349+ Ok ( ( [ ] , expr) ) => Ok ( ( rest, expr) ) ,
350350 Ok ( ( _, _) ) => {
351351 input. backtrace . clear ( ) ;
352352 Err ( nom:: Err :: Error ( Error :: from_error_kind (
@@ -1115,7 +1115,7 @@ fn parse_table_reference_elements<'a>(
11151115 ) ;
11161116
11171117 match parser ( elements. as_slice ( ) ) {
1118- Ok ( ( remaining , expr) ) if remaining . is_empty ( ) => Ok ( ( rest, expr) ) ,
1118+ Ok ( ( [ ] , expr) ) => Ok ( ( rest, expr) ) ,
11191119 Ok ( ( _, _) ) => {
11201120 input. backtrace . clear ( ) ;
11211121 Err ( nom:: Err :: Error ( Error :: from_error_kind (
You can’t perform that action at this time.
0 commit comments