diff --git a/src/io/buf_writer.rs b/src/io/buf_writer.rs index ba3bf741..f12aacbc 100644 --- a/src/io/buf_writer.rs +++ b/src/io/buf_writer.rs @@ -3,8 +3,8 @@ use std::pin::Pin; use futures_core::ready; -use crate::io::{self, Seek, SeekFrom, Write}; use crate::io::write::WriteExt; +use crate::io::{self, Seek, SeekFrom, Write}; use crate::task::{Context, Poll}; const DEFAULT_CAPACITY: usize = 8 * 1024; @@ -200,7 +200,7 @@ impl BufWriter { /// ``` pub async fn into_inner(mut self) -> Result>> where - Self: Unpin + Self: Unpin, { match self.flush().await { Err(e) => Err(IntoInnerError(self, e)),