From 251393ae48bdefbceede78b8972c5cc389aa61b1 Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Thu, 27 Jun 2024 19:18:43 +0200 Subject: [PATCH] Fixed new nodiscard attribute. --- source/mijin/async/coroutine.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/mijin/async/coroutine.hpp b/source/mijin/async/coroutine.hpp index ca4d843..46b8d2c 100644 --- a/source/mijin/async/coroutine.hpp +++ b/source/mijin/async/coroutine.hpp @@ -335,8 +335,7 @@ struct TaskPromise : impl::TaskReturn -[[nodiscard("Tasks should either we awaited or added to a loop.")]] -class TaskBase +class [[nodiscard("Tasks should either we awaited or added to a loop.")]] TaskBase { public: using task_t = TaskBase;