Skip to content

Commit 3e44938

Browse files
committed
rustfmt
1 parent 60f9ddf commit 3e44938

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
@@ -1384,7 +1384,8 @@ impl HumanEmitter {
13841384
buffer.append(0, level.to_str(), Style::MainHeaderMsg);
13851385
buffer.append(0, ": ", Style::NoStyle);
13861386
}
1387-
let printed_lines = self.msgs_to_buffer(&mut buffer, msgs, args, max_line_num_len, "note", None);
1387+
let printed_lines =
1388+
self.msgs_to_buffer(&mut buffer, msgs, args, max_line_num_len, "note", None);
13881389
if is_cont {
13891390
// There's another note after this one, associated to the subwindow above.
13901391
// We write additional vertical lines to join them:
@@ -1398,11 +1399,7 @@ impl HumanEmitter {
13981399
// ╰ note: foo
13991400
// bar
14001401
for i in 1..=printed_lines {
1401-
self.draw_col_separator_no_space(
1402-
&mut buffer,
1403-
i,
1404-
max_line_num_len + 1,
1405-
);
1402+
self.draw_col_separator_no_space(&mut buffer, i, max_line_num_len + 1);
14061403
}
14071404
}
14081405
} else {

compiler/rustc_parse/src/parser/tests.rs

+5-7
Original file line numberDiff line numberDiff line change
@@ -1693,13 +1693,11 @@ fn foo() {
16931693
a { b { c } d }
16941694
}
16951695
"#,
1696-
vec![
1697-
SpanLabel {
1698-
start: Position { string: "a", count: 1 },
1699-
end: Position { string: "d", count: 1 },
1700-
label: "`a` is a good letter",
1701-
},
1702-
],
1696+
vec![SpanLabel {
1697+
start: Position { string: "a", count: 1 },
1698+
end: Position { string: "d", count: 1 },
1699+
label: "`a` is a good letter",
1700+
}],
17031701
vec![(None, "foo\nbar"), (None, "foo\nbar")],
17041702
r#"
17051703
error: foo

0 commit comments

Comments
 (0)