File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -727,10 +727,7 @@ impl<'a> Tokenizer<'a> {
727727 // match binary literal that starts with 0x
728728 if s == "0" && chars. peek ( ) == Some ( & 'x' ) {
729729 chars. next ( ) ;
730- let s2 = peeking_take_while (
731- chars,
732- |ch| matches ! ( ch, '0' ..='9' | 'A' ..='F' | 'a' ..='f' ) ,
733- ) ;
730+ let s2 = peeking_take_while ( chars, |ch| ch. is_ascii_hexdigit ( ) ) ;
734731 return Ok ( Some ( Token :: HexStringLiteral ( s2) ) ) ;
735732 }
736733
@@ -1077,7 +1074,7 @@ impl<'a> Tokenizer<'a> {
10771074 match chars. peek ( ) {
10781075 Some ( '$' ) => {
10791076 chars. next ( ) ;
1080- for ( _ , c ) in value. chars ( ) . enumerate ( ) {
1077+ for c in value. chars ( ) {
10811078 let next_char = chars. next ( ) ;
10821079 if Some ( c) != next_char {
10831080 return self . tokenizer_error (
Original file line number Diff line number Diff line change @@ -3257,7 +3257,7 @@ fn parse_dollar_quoted_string() {
32573257
32583258 let stmt = pg ( ) . parse_sql_statements ( sql) . unwrap ( ) ;
32593259
3260- let projection = match stmt. get ( 0 ) . unwrap ( ) {
3260+ let projection = match stmt. first ( ) . unwrap ( ) {
32613261 Statement :: Query ( query) => match & * query. body {
32623262 SetExpr :: Select ( select) => & select. projection ,
32633263 _ => unreachable ! ( ) ,
You can’t perform that action at this time.
0 commit comments