File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11use crate :: task:: { Context , Poll } ;
22use futures_core:: ready;
3- use futures_io:: { AsyncWrite , AsyncSeek , SeekFrom } ;
3+ use futures_io:: { AsyncSeek , AsyncWrite , SeekFrom } ;
44use std:: fmt;
55use std:: io;
66use std:: pin:: Pin ;
@@ -292,7 +292,11 @@ impl<W: AsyncWrite + AsyncSeek> AsyncSeek for BufWriter<W> {
292292 ///
293293 /// Seeking always writes out the internal buffer before seeking.
294294
295- fn poll_seek ( mut self : Pin < & mut Self > , cx : & mut Context < ' _ > , pos : SeekFrom ) -> Poll < io:: Result < u64 > > {
295+ fn poll_seek (
296+ mut self : Pin < & mut Self > ,
297+ cx : & mut Context < ' _ > ,
298+ pos : SeekFrom ,
299+ ) -> Poll < io:: Result < u64 > > {
296300 ready ! ( self . as_mut( ) . poll_flush_buf( cx) ) ?;
297301 self . inner ( ) . poll_seek ( cx, pos)
298302 }
@@ -302,9 +306,9 @@ mod tests {
302306 #![ allow( unused_imports) ]
303307
304308 use super :: BufWriter ;
309+ use crate :: io:: { self , SeekFrom } ;
305310 use crate :: prelude:: * ;
306311 use crate :: task;
307- use crate :: io:: { self , SeekFrom } ;
308312
309313 #[ test]
310314 fn test_buffered_writer ( ) {
You can’t perform that action at this time.
0 commit comments