Skip to content

Commit 8c46015

Browse files
committed
fix: Add end col seperator if Snippet is followed by a primary Origin
1 parent d1c2b85 commit 8c46015

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/renderer/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,12 @@ impl Renderer {
352352
max_line_num_len + 1,
353353
);
354354
}
355+
Some(Element::Origin(origin)) if origin.primary => self
356+
.draw_col_separator_end(
357+
&mut buffer,
358+
current_line,
359+
max_line_num_len + 1,
360+
),
355361

356362
Some(Element::Message(level))
357363
if level.level.name != Some(None) =>

tests/rustc_tests.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3055,6 +3055,7 @@ error[E0599]: no method named `poll` found for struct `Pin<&mut impl Future<Outp
30553055
|
30563056
LL | match fut.as_mut().poll(ctx) {
30573057
| ^^^^ method not found in `Pin<&mut impl Future<Output = ()>>`
3058+
|
30583059
--> $SRC_DIR/core/src/future/future.rs:104:7
30593060
|
30603061
= note: the method is available for `Pin<&mut impl Future<Output = ()>>` here
@@ -3074,6 +3075,7 @@ error[E0599]: no method named `poll` found for struct `Pin<&mut impl Future<Outp
30743075
30753076
LL │ match fut.as_mut().poll(ctx) {
30763077
│ ━━━━ method not found in `Pin<&mut impl Future<Output = ()>>`
3078+
╰╴
30773079
╭▸ $SRC_DIR/core/src/future/future.rs:104:7
30783080
30793081
├ note: the method is available for `Pin<&mut impl Future<Output = ()>>` here
@@ -3233,6 +3235,7 @@ error: cannot find derive macro `Eqr` in this scope
32333235
|
32343236
LL | #[derive(Eqr)]
32353237
| ^^^ help: a derive macro with a similar name exists: `Eq`
3238+
|
32363239
--> $SRC_DIR/core/src/cmp.rs:356:0
32373240
|
32383241
= note: similarly named derive macro `Eq` defined here
@@ -3248,6 +3251,7 @@ error: cannot find derive macro `Eqr` in this scope
32483251
32493252
LL │ #[derive(Eqr)]
32503253
│ ━━━ help: a derive macro with a similar name exists: `Eq`
3254+
╰╴
32513255
╭▸ $SRC_DIR/core/src/cmp.rs:356:0
32523256
32533257
├ note: similarly named derive macro `Eq` defined here

0 commit comments

Comments
 (0)