diff --git a/AK/Format.h b/AK/Format.h index 1766e510d1f..9b6b480fd13 100644 --- a/AK/Format.h +++ b/AK/Format.h @@ -717,13 +717,11 @@ struct Formatter> : Formatter { template struct Formatter> : Formatter { - static constexpr bool is_debug_only() { return true; } - ErrorOr format(FormatBuilder& builder, Optional const& optional) { if (optional.has_value()) - return Formatter::format(builder, "Optional({})"sv, *optional); - return builder.put_literal("OptionalNone"sv); + return Formatter::format(builder, "{}"sv, *optional); + return builder.put_literal("None"sv); } };