2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-19 20:13:51 +00:00

$cargo fmt

This commit is contained in:
k-nasa 2019-10-13 16:02:02 +09:00
parent ad156b1fce
commit 13ff627b09

View file

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