summaryrefslogtreecommitdiff
path: root/AK/IPv4Address.h
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2023-01-12 22:12:33 +0000
committerLinus Groh <mail@linusgroh.de>2023-01-12 23:29:57 +0000
commit35e1e1236012afd8e31aadf0f28250c730d598da (patch)
tree51842e34ac348a0d6468cc7747cd60d29a45546f /AK/IPv4Address.h
parentf183745f4e14d2c6d6b3da354d8d1e0d782836e1 (diff)
downloadserenity-35e1e1236012afd8e31aadf0f28250c730d598da.zip
AK: Fix ignored .to_string() errors in IPv4Address
Diffstat (limited to 'AK/IPv4Address.h')
-rw-r--r--AK/IPv4Address.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/IPv4Address.h b/AK/IPv4Address.h
index 4977f7cf1f..69437e5536 100644
--- a/AK/IPv4Address.h
+++ b/AK/IPv4Address.h
@@ -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