1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:27:43 +00:00

AK: Fix ignored .to_string() errors in IPv6Address

This commit is contained in:
MacDue 2023-01-12 22:14:12 +00:00 committed by Linus Groh
parent 35e1e12360
commit 514224c015

View file

@ -284,7 +284,7 @@ template<>
struct Formatter<IPv6Address> : Formatter<ErrorOr<NonnullOwnPtr<Kernel::KString>>> {
ErrorOr<void> format(FormatBuilder& builder, IPv6Address const& value)
{
return Formatter<ErrorOr<NonnullOwnPtr<Kernel::KString>>>::format(builder, value.to_string());
return Formatter<ErrorOr<NonnullOwnPtr<Kernel::KString>>>::format(builder, TRY(value.to_string()));
}
};
#else