Skip to content

Commit b621d24

Browse files
committed
fmt
1 parent 1214383 commit b621d24

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

compio-net/src/tcp.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ impl TcpStream {
169169

170170
/// Creates new TcpStream from a std::net::TcpStream.
171171
pub fn from_std(stream: std::net::TcpStream) -> io::Result<Self> {
172-
Ok(Self { inner: Socket::from_socket2(Socket2::from(stream))? })
172+
Ok(Self {
173+
inner: Socket::from_socket2(Socket2::from(stream))?,
174+
})
173175
}
174176

175177
/// Close the socket. If the returned future is dropped before polling, the

compio-net/src/unix.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,10 @@ impl UnixStream {
149149

150150
#[cfg(unix)]
151151
/// Creates new UnixStream from a std::os::unix::net::UnixStream.
152-
pub fn from_std(stream: std::os::unix::net::UnixStream) -> io::Result<Self> {
153-
Ok(Self { inner: Socket::from_socket2(Socket2::from(stream))? })
152+
pub fn from_std(stream: std::os::unix::net::UnixStream) -> io::Result<Self> {
153+
Ok(Self {
154+
inner: Socket::from_socket2(Socket2::from(stream))?,
155+
})
154156
}
155157

156158
/// Close the socket. If the returned future is dropped before polling, the

0 commit comments

Comments
 (0)