File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,8 @@ impl AsyncWrite for &TcpStream {
345345 cx : & mut Context < ' _ > ,
346346 buf : & [ u8 ] ,
347347 ) -> Poll < io:: Result < usize > > {
348- self . watcher . poll_write_with ( cx, |mut inner| inner. write ( buf) )
348+ self . watcher
349+ . poll_write_with ( cx, |mut inner| inner. write ( buf) )
349350 }
350351
351352 fn poll_flush ( self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < io:: Result < ( ) > > {
Original file line number Diff line number Diff line change 11//! Unix-specific networking extensions.
22
33use std:: fmt;
4+ use std:: io:: { Read as _, Write as _} ;
45use std:: net:: Shutdown ;
56use std:: path:: Path ;
6- use std:: io:: { Read as _, Write as _} ;
77use std:: pin:: Pin ;
88
99use futures_io:: { AsyncRead , AsyncWrite } ;
@@ -198,7 +198,8 @@ impl AsyncWrite for &UnixStream {
198198 cx : & mut Context < ' _ > ,
199199 buf : & [ u8 ] ,
200200 ) -> Poll < io:: Result < usize > > {
201- self . watcher . poll_write_with ( cx, |mut inner| inner. write ( buf) )
201+ self . watcher
202+ . poll_write_with ( cx, |mut inner| inner. write ( buf) )
202203 }
203204
204205 fn poll_flush ( self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < io:: Result < ( ) > > {
You can’t perform that action at this time.
0 commit comments