mirror of
https://github.com/tokio-rs/axum.git
synced 2025-01-01 08:56:15 +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
|
// cargo bench -- routing send-json
|
||||||
// ```
|
// ```
|
||||||
let args = std::env::args().collect::<Vec<_>>();
|
let args = std::env::args().collect::<Vec<_>>();
|
||||||
if !args.len() == 1 {
|
if args.len() != 1 {
|
||||||
let names = &args[1..args.len() - 1];
|
let names = &args[1..args.len() - 1];
|
||||||
if !names.is_empty() && !names.contains(&self.name.to_owned()) {
|
if !names.is_empty() && !names.contains(&self.name.to_owned()) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue