AK: Fix ignored .to_string() errors in IPv4Address

This commit is contained in:
MacDue 2023-01-12 22:12:33 +00:00 committed by Linus Groh
parent f183745f4e
commit 35e1e12360
Notes: sideshowbarker 2024-07-17 05:06:13 +09:00

View file

@ -161,7 +161,7 @@ template<>
struct Formatter<IPv4Address> : Formatter<ErrorOr<NonnullOwnPtr<Kernel::KString>>> {
ErrorOr<void> format(FormatBuilder& builder, IPv4Address 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