diff --git a/src/stream/double_ended/mod.rs b/src/stream/double_ended/mod.rs index a3dbafd..ec9e6ae 100644 --- a/src/stream/double_ended/mod.rs +++ b/src/stream/double_ended/mod.rs @@ -49,13 +49,13 @@ extension_trait! { let mut s = Sample::from(vec![7u8]); - assert_eq!(s.next().await, Some(7)); - assert_eq!(s.next().await, None); + assert_eq!(s.next_back().await, Some(7)); + assert_eq!(s.next_back().await, None); # # }) } ``` "#] - fn next(&mut self) -> impl Future> + '_ [NextBackFuture<'_, Self>] + fn next_back(&mut self) -> impl Future> + '_ [NextBackFuture<'_, Self>] where Self: Unpin, { diff --git a/src/stream/double_ended/nth_back.rs b/src/stream/double_ended/nth_back.rs index e318e79..8e1ed63 100644 --- a/src/stream/double_ended/nth_back.rs +++ b/src/stream/double_ended/nth_back.rs @@ -1,6 +1,6 @@ +use std::future::Future; use std::pin::Pin; use std::task::{Context, Poll}; -use std::future::Future; use crate::stream::DoubleEndedStream;