1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:47:45 +00:00

LibWeb: Mark Web::WebDriver::Response as [[nodiscard]]

This commit is contained in:
Timothy Flynn 2023-03-07 07:37:06 -05:00 committed by Linus Groh
parent 0ae015e266
commit ae1611aa08

View file

@ -15,7 +15,7 @@ namespace Web::WebDriver {
// FIXME: Ideally, this could be `using Response = ErrorOr<JsonValue, Error>`, but that won't be
// default-constructible, which is a requirement for the generated IPC.
struct Response {
struct [[nodiscard]] Response {
Response() = default;
Response(JsonValue&&);
Response(Error&&);