From c3512661349b68efac43cdcc648820ea26cceb7e Mon Sep 17 00:00:00 2001 From: Nicholas Dudfield Date: Fri, 20 Feb 2026 11:13:18 +0700 Subject: [PATCH] style: fix clang-format for Coro.ipp --- src/ripple/core/Coro.ipp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/ripple/core/Coro.ipp b/src/ripple/core/Coro.ipp index 21202cd3f..879d846ce 100644 --- a/src/ripple/core/Coro.ipp +++ b/src/ripple/core/Coro.ipp @@ -164,14 +164,13 @@ JobQueue::Coro::postAndYield() yielding_.store(false, std::memory_order_release); // Post a job that waits for yield to be ready, then resumes - if (!jq_.addJob( - type_, name_, [this, sp = shared_from_this()]() { - // Spin-wait until yield() is about to happen - // yielding_ is set true immediately before (*yield_)() is called - while (!yielding_.load(std::memory_order_acquire)) - std::this_thread::yield(); - resume(); - })) + if (!jq_.addJob(type_, name_, [this, sp = shared_from_this()]() { + // Spin-wait until yield() is about to happen + // yielding_ is set true immediately before (*yield_)() is called + while (!yielding_.load(std::memory_order_acquire)) + std::this_thread::yield(); + resume(); + })) { std::lock_guard lk(mutex_run_); running_ = false;