From 945a484289786396805fb42947303b7226abea37 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sat, 25 Jun 2022 23:18:55 -0700 Subject: Remove unneeded std::move calls. --- aisa/coroutine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aisa/coroutine.h b/aisa/coroutine.h index 333cb26..1b55362 100644 --- a/aisa/coroutine.h +++ b/aisa/coroutine.h @@ -52,7 +52,7 @@ namespace aisa { { auto x = std::move(handle::promise().result.value()); handle::destroy(); - return std::move(x); + return x; } template template void task::await_suspend(std::coroutine_handle> h) const noexcept @@ -78,7 +78,7 @@ namespace aisa { if (handle::done()) { auto x = await_resume(); handle::operator=(nullptr); - return std::move(x); + return x; } return {}; } -- cgit v1.2.3