summaryrefslogtreecommitdiffstats
path: root/tokio-buf/src/util/iter.rs
diff options
context:
space:
mode:
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!();
}
}