summaryrefslogtreecommitdiffstats
path: root/tokio-codec
diff options
context:
space:
mode:
authorTaiki Endo <te316e89@gmail.com>2019-08-11 02:01:20 +0900
committerGitHub <noreply@github.com>2019-08-11 02:01:20 +0900
commitd9f9c5658f135d2c5aca19ef435266170187c924 (patch)
tree5454c8087d7dffc244b97fec328a5774879921be /tokio-codec
parentfff39c03b19871aafad25df5b8688d3915f001a0 (diff)
chore: bump to newer nightly (#1426)
Diffstat (limited to 'tokio-codec')
-rw-r--r--tokio-codec/src/framed.rs5
-rw-r--r--tokio-codec/src/framed_write.rs5
-rw-r--r--tokio-codec/tests/framed_read.rs2
3 files changed, 3 insertions, 9 deletions
diff --git a/tokio-codec/src/framed.rs b/tokio-codec/src/framed.rs
index 707353db..da131ee1 100644
--- a/tokio-codec/src/framed.rs
+++ b/tokio-codec/src/framed.rs
@@ -234,10 +234,7 @@ impl<T: AsyncRead + Unpin, U: Unpin> AsyncRead for Fuse<T, U> {
}
impl<T: AsyncBufRead + Unpin, U: Unpin> AsyncBufRead for Fuse<T, U> {
- fn poll_fill_buf<'a>(
- self: Pin<&'a mut Self>,
- cx: &mut Context<'_>,
- ) -> Poll<io::Result<&'a [u8]>> {
+ fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<&[u8]>> {
pin!(self.get_mut().0).poll_fill_buf(cx)
}
diff --git a/tokio-codec/src/framed_write.rs b/tokio-codec/src/framed_write.rs
index 34d24606..0ea45b5c 100644
--- a/tokio-codec/src/framed_write.rs
+++ b/tokio-codec/src/framed_write.rs
@@ -280,10 +280,7 @@ impl<T: AsyncRead + Unpin> AsyncRead for FramedWrite2<T> {
}
impl<T: AsyncBufRead + Unpin> AsyncBufRead for FramedWrite2<T> {
- fn poll_fill_buf<'a>(
- self: Pin<&'a mut Self>,
- cx: &mut Context<'_>,
- ) -> Poll<io::Result<&'a [u8]>> {
+ fn poll_fill_buf(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<&[u8]>> {
pin!(self.get_mut().inner).poll_fill_buf(cx)
}
diff --git a/tokio-codec/tests/framed_read.rs b/tokio-codec/tests/framed_read.rs
index 4215c04c..dc36d8b9 100644
--- a/tokio-codec/tests/framed_read.rs
+++ b/tokio-codec/tests/framed_read.rs
@@ -284,7 +284,7 @@ impl AsyncRead for Mock {
// TODO this newtype is necessary because `&[u8]` does not currently implement `AsyncRead`
struct Slice<'a>(&'a [u8]);
-impl<'a> AsyncRead for Slice<'a> {
+impl AsyncRead for Slice<'_> {
fn poll_read(
mut self: Pin<&mut Self>,
cx: &mut Context<'_>,