mirror of
https://github.com/tokio-rs/axum.git
synced 2025-10-02 15:24:54 +00:00
Fix benchmark filtering
This commit is contained in:
parent
9e50bf16fb
commit
0090d007c0
@ -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…
x
Reference in New Issue
Block a user