mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-29 07:48:39 +01:00
Fix benchmark filtering
This commit is contained in:
parent
9e50bf16fb
commit
0090d007c0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue