diff options
| author | Julian Blake Kongslie | 2022-06-25 23:18:55 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-06-25 23:18:55 -0700 |
| commit | 945a484289786396805fb42947303b7226abea37 (patch) | |
| tree | 2dc3e06aa3ae4728e550be956f9684c8bd031729 /aisa | |
| parent | Include what you use. (diff) | |
| download | issim-945a484289786396805fb42947303b7226abea37.tar.xz | |
Remove unneeded std::move calls.
Diffstat (limited to 'aisa')
| -rw-r--r-- | aisa/coroutine.h | 4 |
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 | } |
