Skip to content

Commit

Permalink
Fix benchmark filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpdrsn committed Aug 11, 2022
1 parent 9e50bf1 commit 0090d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion axum/benches/benches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0090d00

Please sign in to comment.