File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -413,11 +413,19 @@ impl Renderer {
413
413
}
414
414
Element :: Padding ( _) => {
415
415
let current_line = buffer. num_lines ( ) ;
416
- self . draw_col_separator_no_space (
417
- & mut buffer,
418
- current_line,
419
- max_line_num_len + 1 ,
420
- ) ;
416
+ if peek. is_none ( ) {
417
+ self . draw_col_separator_end (
418
+ & mut buffer,
419
+ current_line,
420
+ max_line_num_len + 1 ,
421
+ ) ;
422
+ } else {
423
+ self . draw_col_separator_no_space (
424
+ & mut buffer,
425
+ current_line,
426
+ max_line_num_len + 1 ,
427
+ ) ;
428
+ }
421
429
}
422
430
}
423
431
if g == 0
Original file line number Diff line number Diff line change @@ -2875,7 +2875,7 @@ error[E0282]: type annotations needed
2875
2875
│
2876
2876
LL │ .sum::<_>() //~ ERROR type annotations needed
2877
2877
│ ━━━ cannot infer type of the type parameter `S` declared on the method `sum`
2878
- │
2878
+ ╰╴
2879
2879
"# ] ] ;
2880
2880
let renderer = renderer. theme ( OutputTheme :: Unicode ) ;
2881
2881
assert_data_eq ! ( renderer. render( input) , expected_unicode) ;
@@ -2942,7 +2942,7 @@ error[E0282]: type annotations needed
2942
2942
│
2943
2943
LL │ .sum::<_>() //~ ERROR type annotations needed
2944
2944
│ ━━━ cannot infer type of the type parameter `S` declared on the method `sum`
2945
- │
2945
+ ╰╴
2946
2946
help: consider specifying the generic argument
2947
2947
╭╴
2948
2948
LL - .sum::<_>() //~ ERROR type annotations needed
You can’t perform that action at this time.
0 commit comments