From 51a0e71f2cd7909cdeecebb34a2a59b5fbb58c75 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Wed, 22 Apr 2026 11:41:41 +0000 Subject: [PATCH] fix: Use pattern matching for double-Result filter in bottest --- bottest/tests/integration/performance.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bottest/tests/integration/performance.rs b/bottest/tests/integration/performance.rs index a82c09eb..98910eb3 100644 --- a/bottest/tests/integration/performance.rs +++ b/bottest/tests/integration/performance.rs @@ -69,7 +69,10 @@ async fn test_concurrent_requests_handled() { let successes = results .iter() - .filter(|r| r.as_ref().is_ok_and(|resp| resp.status().is_success())) + .filter(|r| match r { + Ok(Ok(resp)) => resp.status().is_success(), + _ => false, + }) .count(); assert!(