0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-07 19:56:21 -05:00

Format code

This commit is contained in:
DanieleAurilio 2024-11-27 17:57:39 +01:00
parent 31a40db8e5
commit 8a4cbdd22d

View file

@ -402,9 +402,7 @@ where
.ok_or_else(|| NetError::NoResolvedAddress)?;
let tcp_stream = match TcpStream::connect_timeout(&addr, timeout).await {
Ok(tcp_stream) => tcp_stream,
Err(e) => {
return Err(NetError::Io(e))
},
Err(e) => return Err(NetError::Io(e)),
};
let local_addr = tcp_stream.local_addr()?;
let remote_addr = tcp_stream.peer_addr()?;