diff --git a/src/common/fiber.cpp b/src/common/fiber.cpp index c913546031..b12ed4e93d 100644 --- a/src/common/fiber.cpp +++ b/src/common/fiber.cpp @@ -17,11 +17,11 @@ struct Fiber::FiberImpl { std::mutex guard; bool released{}; bool is_thread_fiber{}; - Fiber *next_fiber{}; - Fiber **next_fiber_ptr; + Fiber* next_fiber{}; + Fiber** next_fiber_ptr; std::function entry_point; - mco_coro *context; + mco_coro* context; }; Fiber::Fiber() : impl{std::make_unique()} { @@ -30,9 +30,8 @@ Fiber::Fiber() : impl{std::make_unique()} { Fiber::Fiber(std::function&& entry_point_func) : impl{std::make_unique()} { impl->entry_point = std::move(entry_point_func); - auto desc = mco_desc_init([] (mco_coro *coro) { - reinterpret_cast(coro->user_data)->impl->entry_point(); - }, 0); + auto desc = mco_desc_init( + [](mco_coro* coro) { reinterpret_cast(coro->user_data)->impl->entry_point(); }, 0); desc.user_data = this; mco_result res = mco_create(&impl->context, &desc); ASSERT(res == MCO_SUCCESS);