Skip to content

Commit

Permalink
Rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuki0824 committed Oct 11, 2021
1 parent a5ca4fc commit 4e8350f
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions futures-util/src/io/copy_buf_abortable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ use std::sync::Arc;
/// }
///
/// ```
pub fn copy_buf_abortable<R, W>(reader: R, writer: &mut W) -> (CopyBufAbortable<'_, R, W>, AbortHandle)
where
R: AsyncBufRead,
W: AsyncWrite + Unpin + ?Sized,
pub fn copy_buf_abortable<R, W>(
reader: R,
writer: &mut W,
) -> (CopyBufAbortable<'_, R, W>, AbortHandle)
where
R: AsyncBufRead,
W: AsyncWrite + Unpin + ?Sized,
{
let (handle, reg) = AbortHandle::new_pair();
(CopyBufAbortable { reader, writer, amt: 0, inner: reg.inner }, handle)
Expand All @@ -67,9 +70,9 @@ pin_project! {
}

impl<R, W> Future for CopyBufAbortable<'_, R, W>
where
R: AsyncBufRead,
W: AsyncWrite + Unpin + ?Sized,
where
R: AsyncBufRead,
W: AsyncWrite + Unpin + ?Sized,
{
type Output = Result<Result<u64, Aborted>, io::Error>;

Expand Down

0 comments on commit 4e8350f

Please sign in to comment.