mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
LibCore: Mark the lambda in Promise::when_resolved as mutable
This allows the handler passed into this function to also be mutable.
This commit is contained in:
parent
8f6169859d
commit
0f05aac290
Notes:
github-actions[bot]
2025-03-09 15:15:29 +00:00
Author: https://github.com/trflynn89
Commit: 0f05aac290
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3865
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ public:
|
|||
template<CallableAs<void, Result&> F>
|
||||
Promise& when_resolved(F handler)
|
||||
{
|
||||
return when_resolved([handler = move(handler)](Result& result) -> ErrorOr<void> {
|
||||
return when_resolved([handler = move(handler)](Result& result) mutable -> ErrorOr<void> {
|
||||
handler(result);
|
||||
return {};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue