diff options
author | Carl Lerche <me@carllerche.com> | 2019-05-14 10:27:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-14 10:27:36 -0700 |
commit | cb4aea394e6851ae8cc45a68beeaf2c93cc9a0c0 (patch) | |
tree | 2158eab230c8717d3b35717e50f14fda6ca0edf1 /tokio-buf/src/util/from.rs | |
parent | 79d88200500f6e6c9970e1ad26469276c1a2f71f (diff) |
Update Tokio to Rust 2018 (#1082)
Diffstat (limited to 'tokio-buf/src/util/from.rs')
-rw-r--r-- | tokio-buf/src/util/from.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tokio-buf/src/util/from.rs b/tokio-buf/src/util/from.rs index debebb16..05f047be 100644 --- a/tokio-buf/src/util/from.rs +++ b/tokio-buf/src/util/from.rs @@ -1,4 +1,4 @@ -use SizeHint; +use crate::SizeHint; use bytes::{Buf, BufMut, Bytes}; @@ -138,7 +138,7 @@ impl<T: Buf> FromBufStream<T> for Bytes { } impl fmt::Display for CollectVecError { - fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { write!(fmt, "BufStream is too big") } } @@ -150,7 +150,7 @@ impl Error for CollectVecError { } impl fmt::Display for CollectBytesError { - fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { write!(fmt, "BufStream too big") } } |