mirror of
https://github.com/denoland/deno.git
synced 2025-03-07 19:56:21 -05:00
Format code
This commit is contained in:
parent
31a40db8e5
commit
8a4cbdd22d
1 changed files with 1 additions and 3 deletions
|
@ -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()?;
|
||||
|
|
Loading…
Add table
Reference in a new issue