summaryrefslogtreecommitdiffstats
path: root/tokio/src/io/async_read.rs
diff options
context:
space:
mode:
authorAlice Ryhl <alice@ryhl.io>2020-04-23 22:07:53 +0200
committerGitHub <noreply@github.com>2020-04-23 13:07:53 -0700
commita3aab864d776692bc53357b115c8b06d789c630b (patch)
tree980a2bc1073239446710a02614c883b21f101706 /tokio/src/io/async_read.rs
parent236629d1be7208612cbe5388e7ffebf85b73c157 (diff)
io: track rustfmt/clippy changes (#2431)
Refs: rust-lang/rustfmt#4140
Diffstat (limited to 'tokio/src/io/async_read.rs')
-rw-r--r--tokio/src/io/async_read.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/tokio/src/io/async_read.rs b/tokio/src/io/async_read.rs
index de08d658..cc9091c9 100644
--- a/tokio/src/io/async_read.rs
+++ b/tokio/src/io/async_read.rs
@@ -140,12 +140,14 @@ macro_rules! deref_async_read {
(**self).prepare_uninitialized_buffer(buf)
}
- fn poll_read(mut self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut [u8])
- -> Poll<io::Result<usize>>
- {
+ fn poll_read(
+ mut self: Pin<&mut Self>,
+ cx: &mut Context<'_>,
+ buf: &mut [u8],
+ ) -> Poll<io::Result<usize>> {
Pin::new(&mut **self).poll_read(cx, buf)
}
- }
+ };
}
impl<T: ?Sized + AsyncRead + Unpin> AsyncRead for Box<T> {