From 99d3c05b090b337789a2148064adbdb9562da247 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 31 Oct 2026 06:58:55 +0100 Subject: [PATCH] pool: simpler admission guard (clippy) Co-Authored-By: Claude Sonnet 5.5 --- crates/huginn-daemon/src/index/pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/huginn-daemon/src/index/pool.rs b/crates/huginn-daemon/src/index/pool.rs index 5b15f30..2d0823e 100644 --- a/crates/huginn-daemon/src/index/pool.rs +++ b/crates/huginn-daemon/src/index/pool.rs @@ -64,7 +64,7 @@ impl EmbedderPool { fn admit(&mut self, within: Duration) { let now = Instant::now(); for at in 0..self.members.len() { - if !self.members[at].out.as_ref().is_some_and(|(due, _)| *due <= now) { + if self.members[at].out.as_ref().is_none_or(|(due, _)| *due > now) { continue; } let name = self.members[at].name.clone();