Skip to content

Commit 159ab9b

Browse files
committed
refactor(test_runner): address the unnecessary_lazy_evaluations clippy lint
1 parent d37a949 commit 159ab9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/r3_test_runner/src/driverinterface.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ impl TestDriver {
359359
})
360360
.args(if verbose { None } else { Some("-q") })
361361
// TODO: Use `bool::then` in other places
362-
.args(build_std.then(|| "-Zbuild-std=core"))
363-
.args(small_rt.then(|| "-Zbuild-std-features=panic_immediate_abort"))
362+
.args(build_std.then_some("-Zbuild-std=core"))
363+
.args(small_rt.then_some("-Zbuild-std-features=panic_immediate_abort"))
364364
.env("R3_TEST_DRIVER_LINK_SEARCH", link_dir.path())
365365
// Tell `r3_test_suite/build.rs` which test to run
366366
.env(

0 commit comments

Comments
 (0)