Skip to content

Commit 458e9b2

Browse files
committed
clippy
1 parent db999d9 commit 458e9b2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/format.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ fn indent_block_with_lines(
303303
for _ in 1..indent_amount {
304304
buf.push_str(LINE_HORIZ);
305305
}
306-
buf.push_str(" ");
306+
buf.push(' ');
307307
for i in 0..(indent_amount - 1) {
308308
indent(&mut s, i)
309309
}
@@ -327,7 +327,7 @@ fn indent_block_with_lines(
327327
for _ in 1..indent_amount {
328328
buf.push_str(LINE_HORIZ);
329329
}
330-
buf.push_str(" ");
330+
buf.push(' ');
331331

332332
if indent_spaces != 0 {
333333
for i in 0..indent_amount {
@@ -363,7 +363,7 @@ fn indent_block_with_lines(
363363
for _ in 1..indent_amount {
364364
buf.push_str(LINE_HORIZ);
365365
}
366-
buf.push_str(" ");
366+
buf.push(' ');
367367
if indent_spaces != 0 {
368368
for i in 0..indent_amount {
369369
indent(&mut s, i)
@@ -402,15 +402,15 @@ fn indent_block_with_lines(
402402
// We don't have the space for fancy rendering at single space indent.
403403
if indent_amount > 1 {
404404
if lines.len() > 1 {
405-
buf.push_str("┴");
405+
buf.push('┴');
406406
for _ in 1..indent_amount - 1 {
407407
buf.push_str(LINE_HORIZ);
408408
}
409-
buf.push_str("┬");
409+
buf.push('┬');
410410
for _ in 1..indent_amount {
411411
buf.push_str(LINE_HORIZ);
412412
}
413-
buf.push_str(" ");
413+
buf.push(' ');
414414

415415
if indent_spaces != 0 {
416416
for i in 0..indent_amount - 1 {
@@ -430,15 +430,15 @@ fn indent_block_with_lines(
430430
buf.push_str(LINE_HORIZ);
431431
}
432432
if lines.len() > 1 {
433-
buf.push_str("┴");
433+
buf.push('┴');
434434
for _ in 1..indent_amount - 1 {
435435
buf.push_str(LINE_HORIZ);
436436
}
437-
buf.push_str("┬");
437+
buf.push('┬');
438438
for _ in 1..indent_amount {
439439
buf.push_str(LINE_HORIZ);
440440
}
441-
buf.push_str(" ");
441+
buf.push(' ');
442442
for i in 0..indent_amount - 2 {
443443
indent(&mut s, i)
444444
}
@@ -489,7 +489,7 @@ fn indent_block_with_lines(
489489
// Magic number `2` means "last entry" because we iterate from `1`
490490
// and then restart indexing at `0`.
491491
if i == lines.len() - 2 {
492-
buf.push_str("└");
492+
buf.push('└');
493493
} else {
494494
buf.push_str(LINE_BRANCH);
495495
}

0 commit comments

Comments
 (0)