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() {