Skip to content

Commit 6f04a62

Browse files
committed
Various cleanup
1 parent a1345ed commit 6f04a62

File tree

1 file changed

+18
-22
lines changed

1 file changed

+18
-22
lines changed

src/main.rs

+18-22
Original file line numberDiff line numberDiff line change
@@ -679,12 +679,12 @@ fn print_results(cfg: &Config, client: &Client, bisection_result: &BisectionResu
679679
}
680680

681681
let tc_found = format!("Regression in {}", toolchains[*found]);
682-
eprintln!("");
683-
eprintln!("");
682+
eprintln!();
683+
eprintln!();
684684
eprintln!("{}", "*".repeat(80).dimmed().bold());
685685
eprintln!("{}", tc_found.red());
686686
eprintln!("{}", "*".repeat(80).dimmed().bold());
687-
eprintln!("");
687+
eprintln!();
688688
}
689689

690690
fn print_final_report(
@@ -704,20 +704,16 @@ fn print_final_report(
704704
..
705705
} = ci_bisection_result;
706706

707-
#[rustfmt::skip]
708-
eprintln!("{}", "==================================================================================".dimmed());
709-
#[rustfmt::skip]
710-
eprintln!("{}", "= Please file this regression report on the rust-lang/rust GitHub repository =".dimmed());
711-
#[rustfmt::skip]
712-
eprintln!("{}", "= New issue: https://github.com/rust-lang/rust/issues/new =".dimmed());
713-
#[rustfmt::skip]
714-
eprintln!("{}", "= Known issues: https://github.com/rust-lang/rust/issues =".dimmed());
715-
#[rustfmt::skip]
716-
eprintln!("{}", "= Copy and paste the text below into the issue report thread. Thanks! =".dimmed());
717-
#[rustfmt::skip]
718-
eprintln!("{}", "==================================================================================".dimmed());
719-
720-
eprintln!("");
707+
#[rustfmt::skip] {
708+
eprintln!("==================================================================================".dimmed());
709+
eprintln!("= Please file this regression report on the rust-lang/rust GitHub repository =".dimmed());
710+
eprintln!("= New issue: https://github.com/rust-lang/rust/issues/new =".dimmed());
711+
eprintln!("= Known issues: https://github.com/rust-lang/rust/issues =".dimmed());
712+
eprintln!("= Copy and paste the text below into the issue report thread. Thanks! =".dimmed());
713+
eprintln!("==================================================================================".dimmed());
714+
}
715+
716+
eprintln!();
721717

722718
let (start, end) = searched_range(cfg, nightly_toolchains);
723719

@@ -736,15 +732,15 @@ fn print_final_report(
736732
ci_toolchains[*ci_found],
737733
);
738734

739-
eprintln!("");
735+
eprintln!();
740736
eprintln!("<details>");
741737
eprintln!(
742738
"<summary>bisected with <a href='{}'>cargo-bisect-rustc</a> v{}</summary>",
743739
env!("CARGO_PKG_REPOSITORY"),
744740
env!("CARGO_PKG_VERSION"),
745741
);
746-
eprintln!("");
747-
eprintln!("");
742+
eprintln!();
743+
eprintln!();
748744
if let Some(host) = option_env!("HOST") {
749745
eprintln!("Host triple: {}", host);
750746
}
@@ -757,7 +753,7 @@ fn print_final_report(
757753
eprint!("{} ", arg.to_string_lossy());
758754
}
759755
}
760-
eprintln!("");
756+
eprintln!();
761757
eprintln!("```");
762758
eprintln!("</details>");
763759
}
@@ -1159,7 +1155,7 @@ fn bisect_ci_in_commits(
11591155
}
11601156

11611157
eprintln!("validated commits found, specifying toolchains");
1162-
eprintln!("");
1158+
eprintln!();
11631159

11641160
let toolchains = commits
11651161
.into_iter()

0 commit comments

Comments
 (0)