@@ -368,7 +368,6 @@ fn format_dotnet_format_output(
368368 }
369369
370370 let mut output = format ! ( "Format: {} files need formatting" , changed_count) ;
371- output. push_str ( "\n ---------------------------------------" ) ;
372371
373372 const MAX_FORMAT_FILES : usize = CAP_LIST ;
374373 for ( index, file) in summary
@@ -1056,12 +1055,6 @@ fn format_build_output(summary: &binlog::BuildSummary, _binlog_path: &Path) -> S
10561055 }
10571056 }
10581057
1059- let sep = if !warnings. is_empty ( ) || !errors. is_empty ( ) {
1060- "---------------------------------------"
1061- } else {
1062- ""
1063- } ;
1064-
10651058 let verdict = format ! (
10661059 "{} dotnet build: {} projects, {} errors, {} warnings ({})" ,
10671060 status_icon,
@@ -1076,7 +1069,7 @@ fn format_build_output(summary: &binlog::BuildSummary, _binlog_path: &Path) -> S
10761069 // definitive verdict. Mirrors native `dotnet build`, which ends with
10771070 // `Build succeeded.` / `Build FAILED.`. See issue #1574.
10781071 // Warnings before errors: errors survive `| tail -N` immediately above the verdict.
1079- [ warnings, errors, sep . into ( ) , verdict]
1072+ [ warnings, errors, verdict]
10801073 . into_iter ( )
10811074 . filter ( |s| !s. is_empty ( ) )
10821075 . collect :: < Vec < _ > > ( )
@@ -1218,24 +1211,9 @@ fn format_test_output(
12181211 }
12191212 }
12201213
1221- let sep = if !failed_tests_section. is_empty ( )
1222- || !warnings_section. is_empty ( )
1223- || !errors_section. is_empty ( )
1224- {
1225- "---------------------------------------"
1226- } else {
1227- ""
1228- } ;
1229-
12301214 // Status line emitted last; see format_build_output (issue #1574).
12311215 // Warnings before errors: errors survive `| tail -N` immediately above the verdict.
1232- [
1233- failed_tests_section,
1234- warnings_section,
1235- errors_section,
1236- sep. into ( ) ,
1237- header,
1238- ]
1216+ [ failed_tests_section, warnings_section, errors_section, header]
12391217 . into_iter ( )
12401218 . filter ( |s| !s. is_empty ( ) )
12411219 . collect :: < Vec < _ > > ( )
@@ -1311,20 +1289,14 @@ fn format_restore_output(
13111289 }
13121290 }
13131291
1314- let sep = if !warnings_section. is_empty ( ) || !errors_section. is_empty ( ) {
1315- "---------------------------------------"
1316- } else {
1317- ""
1318- } ;
1319-
13201292 let verdict = format ! (
13211293 "{} dotnet restore: {} projects, {} errors, {} warnings ({})" ,
13221294 status_icon, summary. restored_projects, summary. errors, summary. warnings, duration
13231295 ) ;
13241296
13251297 // Status line emitted last; see format_build_output (issue #1574).
13261298 // Warnings before errors: errors survive `| tail -N` immediately above the verdict.
1327- [ warnings_section, errors_section, sep . into ( ) , verdict]
1299+ [ warnings_section, errors_section, verdict]
13281300 . into_iter ( )
13291301 . filter ( |s| !s. is_empty ( ) )
13301302 . collect :: < Vec < _ > > ( )
0 commit comments