@@ -217,14 +217,13 @@ fn main() {
217
217
// affected test 1000 times and gets the average.
218
218
if let Ok ( speedtest) = std:: env:: var ( "SPEEDTEST" ) {
219
219
println ! ( "----------- STARTING SPEEDTEST -----------" ) ;
220
- let f;
221
- match speedtest. as_str ( ) {
222
- "ui" => f = run_ui as fn ( ) ,
223
- "cargo" => f = run_ui_cargo as fn ( ) ,
224
- "toml" => f = run_ui_toml as fn ( ) ,
225
- "internal" => f = run_internal_tests as fn ( ) ,
226
- "rustfix-coverage-known-exceptions-accuracy" => f = rustfix_coverage_known_exceptions_accuracy as fn ( ) ,
227
- "ui-cargo-toml-metadata" => f = ui_cargo_toml_metadata as fn ( ) ,
220
+ let f = match speedtest. as_str ( ) {
221
+ "ui" => run_ui as fn ( ) ,
222
+ "cargo" => run_ui_cargo as fn ( ) ,
223
+ "toml" => run_ui_toml as fn ( ) ,
224
+ "internal" => run_internal_tests as fn ( ) ,
225
+ "rustfix-coverage-known-exceptions-accuracy" => rustfix_coverage_known_exceptions_accuracy as fn ( ) ,
226
+ "ui-cargo-toml-metadata" => ui_cargo_toml_metadata as fn ( ) ,
228
227
229
228
_ => panic ! ( "unknown speedtest: {speedtest} || accepted speedtests are: [ui, cargo, toml, internal]" ) ,
230
229
} ;
0 commit comments