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