diff options
Diffstat (limited to 'src/libstore/build/goal.hh')
-rw-r--r-- | src/libstore/build/goal.hh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libstore/build/goal.hh b/src/libstore/build/goal.hh index db20b5cdb..adb3ab94b 100644 --- a/src/libstore/build/goal.hh +++ b/src/libstore/build/goal.hh @@ -105,10 +105,13 @@ struct Goal : public std::enable_shared_from_this<Goal> public: - struct StillAlive {}; - struct Finished {}; + struct [[nodiscard]] StillAlive {}; + struct [[nodiscard]] Finished { + ExitCode result; + std::unique_ptr<Error> ex; + }; - struct WorkResult : std::variant<StillAlive, Finished> + struct [[nodiscard]] WorkResult : std::variant<StillAlive, Finished> { WorkResult() = delete; using variant::variant; @@ -159,8 +162,6 @@ public: virtual std::string key() = 0; - Finished amDone(ExitCode result, std::optional<Error> ex = {}); - virtual void cleanup() { } /** |