AK: Decorate AK::Result<V, E> with [[nodiscard]]

This commit is contained in:
Brian Gianforcaro 2020-08-05 05:56:28 -07:00 committed by Andreas Kling
parent a9fb317a63
commit a7ea7b3a66
Notes: sideshowbarker 2024-07-19 04:16:01 +09:00

View file

@ -32,7 +32,7 @@
namespace AK {
template<typename ValueType, typename ErrorType>
class Result {
class [[nodiscard]] Result {
public:
Result(const ValueType& res)
: m_result(res)