diff options
author | Alice Ryhl <alice@ryhl.io> | 2020-04-23 22:07:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 13:07:53 -0700 |
commit | a3aab864d776692bc53357b115c8b06d789c630b (patch) | |
tree | 980a2bc1073239446710a02614c883b21f101706 /tokio/src/io/async_write.rs | |
parent | 236629d1be7208612cbe5388e7ffebf85b73c157 (diff) |
io: track rustfmt/clippy changes (#2431)
Refs: rust-lang/rustfmt#4140
Diffstat (limited to 'tokio/src/io/async_write.rs')
-rw-r--r-- | tokio/src/io/async_write.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tokio/src/io/async_write.rs b/tokio/src/io/async_write.rs index 01463639..ecf7575b 100644 --- a/tokio/src/io/async_write.rs +++ b/tokio/src/io/async_write.rs @@ -153,9 +153,11 @@ pub trait AsyncWrite { macro_rules! deref_async_write { () => { - fn poll_write(mut self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8]) - -> Poll<io::Result<usize>> - { + fn poll_write( + mut self: Pin<&mut Self>, + cx: &mut Context<'_>, + buf: &[u8], + ) -> Poll<io::Result<usize>> { Pin::new(&mut **self).poll_write(cx, buf) } @@ -166,7 +168,7 @@ macro_rules! deref_async_write { fn poll_shutdown(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> { Pin::new(&mut **self).poll_shutdown(cx) } - } + }; } impl<T: ?Sized + AsyncWrite + Unpin> AsyncWrite for Box<T> { |