From 7bd2d784e94ab178d66528cbb54afb13fa158bad Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Thu, 19 Nov 2026 13:46:53 +0100 Subject: [PATCH] fix(offers): the release check reads as clippy 1.94 wants it (#1028) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9 --- compliance-agent/src/api/handlers/offers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compliance-agent/src/api/handlers/offers.rs b/compliance-agent/src/api/handlers/offers.rs index fe2e6da..229bfd3 100644 --- a/compliance-agent/src/api/handlers/offers.rs +++ b/compliance-agent/src/api/handlers/offers.rs @@ -218,7 +218,7 @@ async fn still_open( tracing::error!("connection check unavailable: {e}"); StatusCode::SERVICE_UNAVAILABLE })?; - if !state.is_some_and(|s| s.peer_of(tenant) == Some(offer.supplier_tenant_id.as_str())) { + if state.is_none_or(|s| s.peer_of(tenant) != Some(offer.supplier_tenant_id.as_str())) { return Ok(false); } let Ok(release) = ObjectId::parse_str(&offer.release_id) else {