From 92cea3216ff80ca3b2cb50e6a4a6ed23187b3969 Mon Sep 17 00:00:00 2001 From: MacDue Date: Fri, 13 Jan 2023 02:22:28 +0000 Subject: [PATCH] AK: Don't inherit Formatter> for Formatter --- AK/IPv6Address.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AK/IPv6Address.h b/AK/IPv6Address.h index b6b47e27ce3..292b0a5f62c 100644 --- a/AK/IPv6Address.h +++ b/AK/IPv6Address.h @@ -281,18 +281,18 @@ struct Traits : public GenericTraits { #ifdef KERNEL template<> -struct Formatter : Formatter>> { +struct Formatter : Formatter { ErrorOr format(FormatBuilder& builder, IPv6Address const& value) { - return Formatter>>::format(builder, TRY(value.to_string())); + return Formatter::format(builder, TRY(value.to_string())->view()); } }; #else template<> -struct Formatter : Formatter { +struct Formatter : Formatter { ErrorOr format(FormatBuilder& builder, IPv6Address const& value) { - return Formatter::format(builder, value.to_deprecated_string()); + return Formatter::format(builder, value.to_deprecated_string()); } }; #endif