diff --git a/src/test/core/Coroutine_test.cpp b/src/test/core/Coroutine_test.cpp index bd229f9e7f..6db3f7ee17 100644 --- a/src/test/core/Coroutine_test.cpp +++ b/src/test/core/Coroutine_test.cpp @@ -227,13 +227,16 @@ public: { auto coro = std::make_shared( - Coro_create_t{}, env.app().getJobQueue(), JobType::jtCLIENT, "test", [](auto coro) { + Coro_create_t{}, + env.app().getJobQueue(), + JobType::jtCLIENT, + "test", + [](auto coro) { }); } pass(); - } void diff --git a/src/xrpld/core/Coro.ipp b/src/xrpld/core/Coro.ipp index 457c662a20..da57fa8abb 100644 --- a/src/xrpld/core/Coro.ipp +++ b/src/xrpld/core/Coro.ipp @@ -56,7 +56,9 @@ JobQueue::Coro::Coro( inline JobQueue::Coro::~Coro() { - XRPL_ASSERT(state_ != CoroState::Running, "ripple::JobQueue::Coro::~Coro : is not running"); + XRPL_ASSERT( + state_ != CoroState::Running, + "ripple::JobQueue::Coro::~Coro : is not running"); exiting_ = true; // Resume the coroutine so that it has a chance to clean things up if (state_ == CoroState::Suspended) @@ -65,7 +67,9 @@ inline JobQueue::Coro::~Coro() } #ifndef NDEBUG - XRPL_ASSERT(state_ == CoroState::Finished, "ripple::JobQueue::Coro::~Coro : is finished"); + XRPL_ASSERT( + state_ == CoroState::Finished, + "ripple::JobQueue::Coro::~Coro : is finished"); #endif } diff --git a/src/xrpld/core/JobQueue.h b/src/xrpld/core/JobQueue.h index d0259ebaa5..fb5ab1ea06 100644 --- a/src/xrpld/core/JobQueue.h +++ b/src/xrpld/core/JobQueue.h @@ -63,13 +63,7 @@ public: friend class JobQueue; private: - enum class CoroState - { - None, - Suspended, - Running, - Finished - }; + enum class CoroState { None, Suspended, Running, Finished }; detail::LocalValues lvs_; JobQueue& jq_;