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 @@ -117,7 +117,7 @@ impl<'a> Cursor<'a> {
117117 }
118118
119119 /// Bumps the cursor if the next character is either of the two expected characters.
120- pub ( crate ) fn bump_if_either ( & mut self , byte1 : char , byte2 : char ) -> bool {
120+ pub ( crate ) fn bump_either ( & mut self , byte1 : char , byte2 : char ) -> bool {
121121 let mut chars = self . chars . clone ( ) ;
122122 if let Some ( c) = chars. next ( )
123123 && ( c == byte1 || c == byte2)
Original file line number Diff line number Diff line change @@ -935,7 +935,7 @@ impl Cursor<'_> {
935935 return true ;
936936 }
937937 // Current is '\\', bump again if next is an escaped character.
938- self . bump_if_either ( '\\' , '"' ) ;
938+ self . bump_either ( '\\' , '"' ) ;
939939 }
940940 // End of file reached.
941941 false
@@ -1105,7 +1105,7 @@ impl Cursor<'_> {
11051105 /// and returns false otherwise.
11061106 fn eat_float_exponent ( & mut self ) -> bool {
11071107 debug_assert ! ( self . prev( ) == 'e' || self . prev( ) == 'E' ) ;
1108- self . bump_if_either ( '-' , '+' ) ;
1108+ self . bump_either ( '-' , '+' ) ;
11091109 self . eat_decimal_digits ( )
11101110 }
11111111
You can’t perform that action at this time.
0 commit comments