Skip to content

Commit e640d4f

Browse files
committed
rustfmt
1 parent 667400d commit e640d4f

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

compiler/rustc_errors/src/emitter.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,8 @@ impl HumanEmitter {
14091409
buffer.append(0, level.to_str(), Style::MainHeaderMsg);
14101410
buffer.append(0, ": ", Style::NoStyle);
14111411
}
1412-
let printed_lines = self.msgs_to_buffer(&mut buffer, msgs, args, max_line_num_len, "note", None);
1412+
let printed_lines =
1413+
self.msgs_to_buffer(&mut buffer, msgs, args, max_line_num_len, "note", None);
14131414
if is_cont {
14141415
// There's another note after this one, associated to the subwindow above.
14151416
// We write additional vertical lines to join them:
@@ -1423,11 +1424,7 @@ impl HumanEmitter {
14231424
// ╰ note: foo
14241425
// bar
14251426
for i in 1..=printed_lines {
1426-
self.draw_col_separator_no_space(
1427-
&mut buffer,
1428-
i,
1429-
max_line_num_len + 1,
1430-
);
1427+
self.draw_col_separator_no_space(&mut buffer, i, max_line_num_len + 1);
14311428
}
14321429
}
14331430
} else {

compiler/rustc_parse/src/parser/tests.rs

+5-7
Original file line numberDiff line numberDiff line change
@@ -1676,13 +1676,11 @@ fn foo() {
16761676
a { b { c } d }
16771677
}
16781678
"#,
1679-
vec![
1680-
SpanLabel {
1681-
start: Position { string: "a", count: 1 },
1682-
end: Position { string: "d", count: 1 },
1683-
label: "`a` is a good letter",
1684-
},
1685-
],
1679+
vec![SpanLabel {
1680+
start: Position { string: "a", count: 1 },
1681+
end: Position { string: "d", count: 1 },
1682+
label: "`a` is a good letter",
1683+
}],
16861684
vec![(None, "foo\nbar"), (None, "foo\nbar")],
16871685
r#"
16881686
error: foo

0 commit comments

Comments
 (0)