mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-15 00:00:20 +02:00
Fix benchmark filtering
This commit is contained in:
@@ -101,7 +101,7 @@ impl BenchmarkBuilder {
|
||||
// cargo bench -- routing send-json
|
||||
// ```
|
||||
let args = std::env::args().collect::<Vec<_>>();
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user