From 3a23378a88534df91bacc0ab81259fe48f46c839 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Fri, 12 Jun 2026 16:32:14 +0200 Subject: [PATCH] =?UTF-8?q?style(engine):=20rustfmt=20=E2=80=94=20workers/?= =?UTF-8?q?pool.rs=20test=20module=20(gate=20fixup)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- server/src/workers/pool.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/src/workers/pool.rs b/server/src/workers/pool.rs index b84fd639c..bb96503c2 100644 --- a/server/src/workers/pool.rs +++ b/server/src/workers/pool.rs @@ -98,9 +98,10 @@ where // loses capacity. The in-flight request is still lost // (no result delivered) — re-enqueue is future work, // see the module-level TODO (#843). - let result = std::panic::catch_unwind( - std::panic::AssertUnwindSafe(|| handler(work.payload)), - ); + let result = + std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| { + handler(work.payload) + })); match result { Ok(resp) => { if tx.send((resp, strategy)).is_err() {