diff --git a/Userland/Libraries/LibWeb/WebIDL/ExceptionOr.h b/Userland/Libraries/LibWeb/WebIDL/ExceptionOr.h index 9ce61493b6..1dded4e8f2 100644 --- a/Userland/Libraries/LibWeb/WebIDL/ExceptionOr.h +++ b/Userland/Libraries/LibWeb/WebIDL/ExceptionOr.h @@ -33,7 +33,7 @@ struct SimpleException { }; template -class ExceptionOr { +class [[nodiscard]] ExceptionOr { public: ExceptionOr() requires(IsSame) : m_result(Empty {}) @@ -119,7 +119,7 @@ private: }; template<> -class ExceptionOr : public ExceptionOr { +class [[nodiscard]] ExceptionOr : public ExceptionOr { public: using ExceptionOr::ExceptionOr; };