diff --git a/axum/benches/benches.rs b/axum/benches/benches.rs index a34cb269..81d4ec8c 100644 --- a/axum/benches/benches.rs +++ b/axum/benches/benches.rs @@ -101,7 +101,7 @@ impl BenchmarkBuilder { // cargo bench -- routing send-json // ``` let args = std::env::args().collect::>(); - if !args.len() == 1 { + if args.len() != 1 { let names = &args[1..args.len() - 1]; if !names.is_empty() && !names.contains(&self.name.to_owned()) { return;