File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,13 @@ extension_trait! {
49
49
50
50
let mut s = Sample::from(vec![7u8]);
51
51
52
- assert_eq!(s.next ().await, Some(7));
53
- assert_eq!(s.next ().await, None);
52
+ assert_eq!(s.next_back ().await, Some(7));
53
+ assert_eq!(s.next_back ().await, None);
54
54
#
55
55
# }) }
56
56
```
57
57
"# ]
58
- fn next ( & mut self ) -> impl Future <Output = Option <Self :: Item >> + ' _ [ NextBackFuture <' _, Self >]
58
+ fn next_back ( & mut self ) -> impl Future <Output = Option <Self :: Item >> + ' _ [ NextBackFuture <' _, Self >]
59
59
where
60
60
Self : Unpin ,
61
61
{
Original file line number Diff line number Diff line change
1
+ use std:: future:: Future ;
1
2
use std:: pin:: Pin ;
2
3
use std:: task:: { Context , Poll } ;
3
- use std:: future:: Future ;
4
4
5
5
use crate :: stream:: DoubleEndedStream ;
6
6
You can’t perform that action at this time.
0 commit comments