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 {
413413 }
414414 Element :: Padding ( _) => {
415415 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+ }
421429 }
422430 }
423431 if g == 0
Original file line number Diff line number Diff line change @@ -2875,7 +2875,7 @@ error[E0282]: type annotations needed
28752875 │
28762876LL │ .sum::<_>() //~ ERROR type annotations needed
28772877 │ ━━━ cannot infer type of the type parameter `S` declared on the method `sum`
2878- │
2878+ ╰╴
28792879"# ] ] ;
28802880 let renderer = renderer. theme ( OutputTheme :: Unicode ) ;
28812881 assert_data_eq ! ( renderer. render( input) , expected_unicode) ;
@@ -2942,7 +2942,7 @@ error[E0282]: type annotations needed
29422942 │
29432943LL │ .sum::<_>() //~ ERROR type annotations needed
29442944 │ ━━━ cannot infer type of the type parameter `S` declared on the method `sum`
2945- │
2945+ ╰╴
29462946help: consider specifying the generic argument
29472947 ╭╴
29482948LL - .sum::<_>() //~ ERROR type annotations needed
You can’t perform that action at this time.
0 commit comments