@@ -176,9 +176,15 @@ impl<'a> StringReader<'a> {
176
176
177
177
for s in spans {
178
178
if spans_len < SPAN_THRESHOLD {
179
- err. span_suggestion ( s, MSG_STR , hash_str. clone ( ) , Applicability :: MaybeIncorrect ) ;
179
+ err. span_suggestion ( s,
180
+ MSG_STR ,
181
+ hash_str. clone ( ) ,
182
+ Applicability :: MaybeIncorrect ) ;
180
183
} else {
181
- err. tool_only_span_suggestion ( s, MSG_STR , hash_str. clone ( ) , Applicability :: MaybeIncorrect ) ;
184
+ err. tool_only_span_suggestion ( s,
185
+ MSG_STR ,
186
+ hash_str. clone ( ) ,
187
+ Applicability :: MaybeIncorrect ) ;
182
188
}
183
189
}
184
190
@@ -1313,7 +1319,11 @@ impl<'a> StringReader<'a> {
1313
1319
id
1314
1320
}
1315
1321
1316
- fn scan_raw_string ( & mut self , start_bpos : BytePos , raw_type : RawStringType ) -> ( token:: LitKind , Symbol ) {
1322
+ fn scan_raw_string (
1323
+ & mut self ,
1324
+ start_bpos : BytePos ,
1325
+ raw_type : RawStringType
1326
+ ) -> ( token:: LitKind , Symbol ) {
1317
1327
self . bump ( ) ;
1318
1328
let mut hash_count: u16 = 0 ;
1319
1329
while self . ch_is ( '#' ) {
@@ -1330,7 +1340,9 @@ impl<'a> StringReader<'a> {
1330
1340
let bpos_span = self . mk_sp ( start_bpos, self . pos ) ;
1331
1341
1332
1342
match self . ch {
1333
- None => self . fail_unterminated_raw_string ( bpos_span, hash_count, vec ! [ self . mk_sp( self . pos, self . pos) ] ) ,
1343
+ None => self . fail_unterminated_raw_string ( bpos_span,
1344
+ hash_count,
1345
+ vec ! [ self . mk_sp( self . pos, self . pos) ] ) ,
1334
1346
Some ( '"' ) => { } ,
1335
1347
Some ( c) => {
1336
1348
let last_bpos = self . pos ;
0 commit comments