mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: AK: Fix ignored .to_string() errors in IPv4Socket
This commit is contained in:
parent
514224c015
commit
969aacd627
Notes:
sideshowbarker
2024-07-17 01:46:48 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/969aacd627 Pull-request: https://github.com/SerenityOS/serenity/pull/16986 Reviewed-by: https://github.com/linusg
1 changed files with 2 additions and 2 deletions
|
@ -480,9 +480,9 @@ ErrorOr<NonnullOwnPtr<KString>> IPv4Socket::pseudo_path(OpenFileDescription cons
|
|||
StringBuilder builder;
|
||||
TRY(builder.try_append("socket:"sv));
|
||||
|
||||
TRY(builder.try_appendff("{}:{}", m_local_address.to_string(), m_local_port));
|
||||
TRY(builder.try_appendff("{}:{}", TRY(m_local_address.to_string()), m_local_port));
|
||||
if (m_role == Role::Accepted || m_role == Role::Connected)
|
||||
TRY(builder.try_appendff(" / {}:{}", m_peer_address.to_string(), m_peer_port));
|
||||
TRY(builder.try_appendff(" / {}:{}", TRY(m_peer_address.to_string()), m_peer_port));
|
||||
|
||||
switch (m_role) {
|
||||
case Role::Listener:
|
||||
|
|
Loading…
Reference in a new issue