summaryrefslogtreecommitdiffstats
path: root/tokio-buf/src/util/iter.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2019-05-14 10:27:36 -0700
committerGitHub <noreply@github.com>2019-05-14 10:27:36 -0700
commitcb4aea394e6851ae8cc45a68beeaf2c93cc9a0c0 (patch)
tree2158eab230c8717d3b35717e50f14fda6ca0edf1 /tokio-buf/src/util/iter.rs
parent79d88200500f6e6c9970e1ad26469276c1a2f71f (diff)
Update Tokio to Rust 2018 (#1082)
Diffstat (limited to 'tokio-buf/src/util/iter.rs')
-rw-r--r--tokio-buf/src/util/iter.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio-buf/src/util/iter.rs b/tokio-buf/src/util/iter.rs
index 0f48546a..dff4d343 100644
--- a/tokio-buf/src/util/iter.rs
+++ b/tokio-buf/src/util/iter.rs
@@ -1,8 +1,8 @@
+use crate::BufStream;
use bytes::Buf;
use futures::Poll;
use std::error::Error;
use std::fmt;
-use BufStream;
/// Converts an `Iterator` into a `BufStream` which is always ready to yield the
/// next value.
@@ -42,7 +42,7 @@ where
}
impl fmt::Display for Never {
- fn fmt(&self, _: &mut fmt::Formatter) -> fmt::Result {
+ fn fmt(&self, _: &mut fmt::Formatter<'_>) -> fmt::Result {
unreachable!();
}
}