summaryrefslogtreecommitdiff
path: root/cli/bench/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/bench/main.rs')
-rw-r--r--cli/bench/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/bench/main.rs b/cli/bench/main.rs
index e15f76277..d19731faa 100644
--- a/cli/bench/main.rs
+++ b/cli/bench/main.rs
@@ -439,7 +439,7 @@ struct BenchResult {
we replace the harness with our own runner here.
*/
fn main() -> Result<()> {
- if env::args().find(|s| s == "--bench").is_none() {
+ if !env::args().any(|s| s == "--bench") {
return Ok(());
}