Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 66e67f5

Browse files
authored
Merge pull request #267 from Muscraft/no-origin-auto-pad
fix!: Don't auto-add padding between Origin and Message
2 parents 1d8c41f + 250c713 commit 66e67f5

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)

AltStyle によって変換されたページ (->オリジナル) /