Skip to content

Commit 63154f5

Browse files
committed
cargo fmt
1 parent d23af83 commit 63154f5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/io/buf_writer.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::task::{Context, Poll};
22
use futures_core::ready;
3-
use futures_io::{AsyncWrite, AsyncSeek, SeekFrom};
3+
use futures_io::{AsyncSeek, AsyncWrite, SeekFrom};
44
use std::fmt;
55
use std::io;
66
use 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() {

0 commit comments

Comments
 (0)