mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Decorate AK::Result<V, E> with [[nodiscard]]
This commit is contained in:
parent
a9fb317a63
commit
a7ea7b3a66
Notes:
sideshowbarker
2024-07-19 04:16:01 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/a7ea7b3a66f Pull-request: https://github.com/SerenityOS/serenity/pull/3008
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
|||
namespace AK {
|
||||
|
||||
template<typename ValueType, typename ErrorType>
|
||||
class Result {
|
||||
class [[nodiscard]] Result {
|
||||
public:
|
||||
Result(const ValueType& res)
|
||||
: m_result(res)
|
||||
|
|
Loading…
Reference in a new issue