Skip to content

Commit 250c713

Browse files
committed
fix!: Don't auto-add padding between Origin and Message
1 parent 1d8c41f commit 250c713

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

src/renderer/mod.rs

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,14 @@ impl Renderer {
390390
is_first,
391391
buffer_msg_line_offset,
392392
);
393+
let current_line = buffer.num_lines();
394+
if g == 0 && peek.is_none() && group_len > 1 {
395+
self.draw_col_separator_end(
396+
&mut buffer,
397+
current_line,
398+
max_line_num_len + 1,
399+
);
400+
}
393401
}
394402
Element::Padding(_) => {
395403
let current_line = buffer.num_lines();
@@ -408,22 +416,6 @@ impl Renderer {
408416
}
409417
}
410418
}
411-
if g == 0 && matches!(section, Element::Origin(_)) {
412-
let current_line = buffer.num_lines();
413-
if peek.is_none() && group_len > 1 {
414-
self.draw_col_separator_end(
415-
&mut buffer,
416-
current_line,
417-
max_line_num_len + 1,
418-
);
419-
} else if matches!(peek, Some(Element::Message(_))) {
420-
self.draw_col_separator_no_space(
421-
&mut buffer,
422-
current_line,
423-
max_line_num_len + 1,
424-
);
425-
}
426-
}
427419
}
428420
buffer
429421
.render(&level, &self.stylesheet, &mut out_string)

tests/rustc_tests.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4614,7 +4614,6 @@ If your compilation actually takes a long time, you can safely allow the lint.";
46144614
let expected = str![[r#"
46154615
error: constant evaluation is taking a long time
46164616
--> $SRC_DIR/core/src/num/mod.rs:1151:4
4617-
|
46184617
= note: this lint makes sure the compiler doesn't get stuck due to infinite loops in const eval.
46194618
If your compilation actually takes a long time, you can safely allow the lint.
46204619
help: the constant being evaluated

0 commit comments

Comments
 (0)