Skip to content

Commit 6e90f7f

Browse files
committed
fix tidy errors
1 parent cef07e9 commit 6e90f7f

File tree

1 file changed

+16
-4
lines changed
  • src/libsyntax/parse/lexer

1 file changed

+16
-4
lines changed

src/libsyntax/parse/lexer/mod.rs

+16-4
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,15 @@ impl<'a> StringReader<'a> {
176176

177177
for s in spans {
178178
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);
180183
} 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);
182188
}
183189
}
184190

@@ -1313,7 +1319,11 @@ impl<'a> StringReader<'a> {
13131319
id
13141320
}
13151321

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) {
13171327
self.bump();
13181328
let mut hash_count: u16 = 0;
13191329
while self.ch_is('#') {
@@ -1330,7 +1340,9 @@ impl<'a> StringReader<'a> {
13301340
let bpos_span = self.mk_sp(start_bpos, self.pos);
13311341

13321342
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)]),
13341346
Some('"') => {},
13351347
Some(c) => {
13361348
let last_bpos = self.pos;

0 commit comments

Comments
 (0)