We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unnecessary_lazy_evaluations
1 parent d37a949 commit 159ab9bCopy full SHA for 159ab9b
src/r3_test_runner/src/driverinterface.rs
@@ -359,8 +359,8 @@ impl TestDriver {
359
})
360
.args(if verbose { None } else { Some("-q") })
361
// 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"))
+ .args(build_std.then_some("-Zbuild-std=core"))
+ .args(small_rt.then_some("-Zbuild-std-features=panic_immediate_abort"))
364
.env("R3_TEST_DRIVER_LINK_SEARCH", link_dir.path())
365
// Tell `r3_test_suite/build.rs` which test to run
366
.env(
0 commit comments