File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1143,7 +1143,7 @@ impl<'a> Lexer<'a> {
1143
1143
let subscript = {
1144
1144
if self . next_char_exact ( "," ) || self . next_chars_exact ( [ "_" ; 2 ] ) {
1145
1145
Some ( self . subscript ( "," ) )
1146
- } else if self . peek_char ( ) . map_or ( false , is_formatted_subscript) {
1146
+ } else if self . peek_char ( ) . is_some_and ( is_formatted_subscript) {
1147
1147
let init = self . next_char ( ) . unwrap ( ) ;
1148
1148
Some ( self . subscript ( init) )
1149
1149
} else {
@@ -1158,7 +1158,7 @@ impl<'a> Lexer<'a> {
1158
1158
let ( m, before_last_2nd_chain) = read_chain ( & mut self ) ;
1159
1159
let has_2nd_subscript = self . next_char_exact ( "," )
1160
1160
|| self . next_chars_exact ( [ "_" ; 2 ] )
1161
- || self . peek_char ( ) . map_or ( false , is_formatted_subscript) ;
1161
+ || self . peek_char ( ) . is_some_and ( is_formatted_subscript) ;
1162
1162
if !has_2nd_subscript {
1163
1163
self . end ( Subscr ( Subscript :: numeric ( n + num + m) ) , start) ;
1164
1164
} else {
You can’t perform that action at this time.
0 commit comments