Fix benchmark filtering

This commit is contained in:
David Pedersen 2022-08-11 11:12:04 +02:00
parent 9e50bf16fb
commit 0090d007c0

View file

@ -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;