Skip to content

Commit 86a1579

Browse files
committed
Fix dogfood
1 parent 7a49175 commit 86a1579

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/compile-test.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -359,21 +359,21 @@ fn compile_test() {
359359
// affected test 1000 times and gets the average.
360360
if let Ok(speedtest) = std::env::var("SPEEDTEST") {
361361
println!("----------- STARTING SPEEDTEST -----------");
362-
let f;
363-
match speedtest.as_str() {
364-
"ui" => f = run_ui as fn(),
365-
"cargo" => f = run_ui_cargo as fn(),
366-
"toml" => f = run_ui_toml as fn(),
367-
"internal" => f = run_internal_tests as fn(),
362+
363+
let f = match speedtest.as_str() {
364+
"ui" => run_ui as fn(),
365+
"cargo" => run_ui_cargo as fn(),
366+
"toml" => run_ui_toml as fn(),
367+
"internal" => run_internal_tests as fn(),
368368

369369
_ => panic!("unknown speedtest: {speedtest} || accepted speedtests are: [ui, cargo, toml, internal]"),
370-
}
370+
};
371371

372372
let iterations;
373373
if let Ok(iterations_str) = std::env::var("SPEEDTEST_ITERATIONS") {
374374
iterations = iterations_str
375375
.parse::<u64>()
376-
.unwrap_or_else(|_| panic!("Couldn't parse `{}`, please use a valid u64", iterations_str));
376+
.unwrap_or_else(|_| panic!("Couldn't parse `{iterations_str}`, please use a valid u64"));
377377
} else {
378378
iterations = 1000;
379379
}

0 commit comments

Comments
 (0)