File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments