From d915f6757f34e82268127f368292727a16c8f2d7 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 28 Oct 2026 13:15:30 +0100 Subject: [PATCH] connector-reasoning-item fix: cargo fmt Co-Authored-By: Claude Opus 5.5 --- crates/model-connector/src/service.rs | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/crates/model-connector/src/service.rs b/crates/model-connector/src/service.rs index 4d59f75..9a2ea2a 100644 --- a/crates/model-connector/src/service.rs +++ b/crates/model-connector/src/service.rs @@ -435,17 +435,27 @@ impl TransportService { let mut response = if admissible { encrypt_result(&result, &security)? } else { - self.seal_stand_in(invocation, &security, max_frame_bytes, FailureKind::Provider) - .inspect_err(|_| { - self.live.remove(&identity); - })? + self.seal_stand_in( + invocation, + &security, + max_frame_bytes, + FailureKind::Provider, + ) + .inspect_err(|_| { + self.live.remove(&identity); + })? }; if admissible && !fits_frame(&response, max_frame_bytes)? { // Nothing is recorded when even the stand-in cannot be carried, // but the caller's slot is not held by a request that can no // longer finish. response = self - .seal_stand_in(invocation, &security, max_frame_bytes, FailureKind::ResultSize) + .seal_stand_in( + invocation, + &security, + max_frame_bytes, + FailureKind::ResultSize, + ) .inspect_err(|_| { self.live.remove(&identity); })?; @@ -1701,7 +1711,10 @@ mod tests { panic!("expected an execution claim"); }; assert_eq!(claim.call().foreign_reasoning_dropped(), 1); - for text in [format!("{:?}", claim.call()), format!("{:#?}", claim.call())] { + for text in [ + format!("{:?}", claim.call()), + format!("{:#?}", claim.call()), + ] { assert!(!text.contains(canary), "{text}"); assert!(!text.contains("199, 200, 201, 202"), "{text}"); }