From 0090d007c08a35dfee8b93e33845b162cb52a8d2 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Thu, 11 Aug 2022 11:12:04 +0200 Subject: [PATCH] Fix benchmark filtering --- axum/benches/benches.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axum/benches/benches.rs b/axum/benches/benches.rs index a34cb269..81d4ec8c 100644 --- a/axum/benches/benches.rs +++ b/axum/benches/benches.rs @@ -101,7 +101,7 @@ impl BenchmarkBuilder { // cargo bench -- routing send-json // ``` let args = std::env::args().collect::>(); - 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;