summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--aisa/coroutine.h4
1 files 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 {
52 { 52 {
53 auto x = std::move(handle::promise().result.value()); 53 auto x = std::move(handle::promise().result.value());
54 handle::destroy(); 54 handle::destroy();
55 return std::move(x); 55 return x;
56 } 56 }
57 57
58 template<typename result_t> template<typename other_t> void task<result_t>::await_suspend(std::coroutine_handle<task_promise<other_t>> h) const noexcept 58 template<typename result_t> template<typename other_t> void task<result_t>::await_suspend(std::coroutine_handle<task_promise<other_t>> h) const noexcept
@@ -78,7 +78,7 @@ namespace aisa {
78 if (handle::done()) { 78 if (handle::done()) {
79 auto x = await_resume(); 79 auto x = await_resume();
80 handle::operator=(nullptr); 80 handle::operator=(nullptr);
81 return std::move(x); 81 return x;
82 } 82 }
83 return {}; 83 return {};
84 } 84 }