Skip to content

Commit

Permalink
refactor(test_runner): address the unnecessary_lazy_evaluations cli…
Browse files Browse the repository at this point in the history
…ppy lint
  • Loading branch information
yvt committed Aug 14, 2022
1 parent d37a949 commit 159ab9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/r3_test_runner/src/driverinterface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ impl TestDriver {
})
.args(if verbose { None } else { Some("-q") })
// TODO: Use `bool::then` in other places
.args(build_std.then(|| "-Zbuild-std=core"))
.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"))
.env("R3_TEST_DRIVER_LINK_SEARCH", link_dir.path())
// Tell `r3_test_suite/build.rs` which test to run
.env(
Expand Down

0 comments on commit 159ab9b

Please sign in to comment.