@@ -303,7 +303,7 @@ fn indent_block_with_lines(
303
303
for _ in 1 ..indent_amount {
304
304
buf. push_str ( LINE_HORIZ ) ;
305
305
}
306
- buf. push_str ( " " ) ;
306
+ buf. push ( ' ' ) ;
307
307
for i in 0 ..( indent_amount - 1 ) {
308
308
indent ( & mut s, i)
309
309
}
@@ -327,7 +327,7 @@ fn indent_block_with_lines(
327
327
for _ in 1 ..indent_amount {
328
328
buf. push_str ( LINE_HORIZ ) ;
329
329
}
330
- buf. push_str ( " " ) ;
330
+ buf. push ( ' ' ) ;
331
331
332
332
if indent_spaces != 0 {
333
333
for i in 0 ..indent_amount {
@@ -363,7 +363,7 @@ fn indent_block_with_lines(
363
363
for _ in 1 ..indent_amount {
364
364
buf. push_str ( LINE_HORIZ ) ;
365
365
}
366
- buf. push_str ( " " ) ;
366
+ buf. push ( ' ' ) ;
367
367
if indent_spaces != 0 {
368
368
for i in 0 ..indent_amount {
369
369
indent ( & mut s, i)
@@ -402,15 +402,15 @@ fn indent_block_with_lines(
402
402
// We don't have the space for fancy rendering at single space indent.
403
403
if indent_amount > 1 {
404
404
if lines. len ( ) > 1 {
405
- buf. push_str ( "┴" ) ;
405
+ buf. push ( '┴' ) ;
406
406
for _ in 1 ..indent_amount - 1 {
407
407
buf. push_str ( LINE_HORIZ ) ;
408
408
}
409
- buf. push_str ( "┬" ) ;
409
+ buf. push ( '┬' ) ;
410
410
for _ in 1 ..indent_amount {
411
411
buf. push_str ( LINE_HORIZ ) ;
412
412
}
413
- buf. push_str ( " " ) ;
413
+ buf. push ( ' ' ) ;
414
414
415
415
if indent_spaces != 0 {
416
416
for i in 0 ..indent_amount - 1 {
@@ -430,15 +430,15 @@ fn indent_block_with_lines(
430
430
buf. push_str ( LINE_HORIZ ) ;
431
431
}
432
432
if lines. len ( ) > 1 {
433
- buf. push_str ( "┴" ) ;
433
+ buf. push ( '┴' ) ;
434
434
for _ in 1 ..indent_amount - 1 {
435
435
buf. push_str ( LINE_HORIZ ) ;
436
436
}
437
- buf. push_str ( "┬" ) ;
437
+ buf. push ( '┬' ) ;
438
438
for _ in 1 ..indent_amount {
439
439
buf. push_str ( LINE_HORIZ ) ;
440
440
}
441
- buf. push_str ( " " ) ;
441
+ buf. push ( ' ' ) ;
442
442
for i in 0 ..indent_amount - 2 {
443
443
indent ( & mut s, i)
444
444
}
@@ -489,7 +489,7 @@ fn indent_block_with_lines(
489
489
// Magic number `2` means "last entry" because we iterate from `1`
490
490
// and then restart indexing at `0`.
491
491
if i == lines. len ( ) - 2 {
492
- buf. push_str ( "└" ) ;
492
+ buf. push ( '└' ) ;
493
493
} else {
494
494
buf. push_str ( LINE_BRANCH ) ;
495
495
}
0 commit comments