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 @@ -93,7 +93,7 @@ impl<'a> Formatter<'a> {
9393 for c in s. chars ( ) {
9494 match c {
9595 '\n' => has_newline = true ,
96- '\r' | '\t' | '\u{0020}' ... '\u{FFFF}' => { }
96+ '\r' | '\t' | '\u{0020}' ..= '\u{FFFF}' => { }
9797 _ => has_nonprintable = true ,
9898 }
9999 }
@@ -107,7 +107,7 @@ impl<'a> Formatter<'a> {
107107 '\t' => self . write ( r"\t" ) ,
108108 '"' => self . write ( "\\ \" " ) ,
109109 '\\' => self . write ( r"\\" ) ,
110- '\u{0020}' ... '\u{FFFF}' => self . buf . push ( c) ,
110+ '\u{0020}' ..= '\u{FFFF}' => self . buf . push ( c) ,
111111 _ => write ! ( & mut self . buf, "\\ u{:04}" , c as u32 ) . unwrap ( ) ,
112112 }
113113 }
Original file line number Diff line number Diff line change @@ -169,10 +169,10 @@ impl<'a> TokenStream<'a> {
169169 )
170170 }
171171 }
172- '_' | 'a' ... 'z' | 'A' ... 'Z' => {
172+ '_' | 'a' ..= 'z' | 'A' ..= 'Z' => {
173173 while let Some ( ( idx, cur_char) ) = iter. next ( ) {
174174 match cur_char {
175- '_' | 'a' ... 'z' | 'A' ... 'Z' | '0' ... '9' => continue ,
175+ '_' | 'a' ..= 'z' | 'A' ..= 'Z' | '0' ..= '9' => continue ,
176176 _ => {
177177 self . position . column += idx;
178178 self . off += idx;
@@ -186,7 +186,7 @@ impl<'a> TokenStream<'a> {
186186
187187 Ok ( ( Name , len) )
188188 }
189- '-' | '0' ... '9' => {
189+ '-' | '0' ..= '9' => {
190190 let mut exponent = None ;
191191 let mut real = None ;
192192 let len = loop {
You can’t perform that action at this time.
0 commit comments