Skip to content

Commit df22d87

Browse files
committed
Removed unnecessary links + hotfix
1 parent 924e5a3 commit df22d87

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/stream/stream/flatten.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ where
5353
loop {
5454
if let Some(inner) = this.inner_stream.as_mut().as_pin_mut() {
5555
match futures_core::ready!(inner.poll_next(cx)) {
56-
item @ Some(_) => return Poll::Ready(next_item),
56+
item @ Some(_) => return Poll::Ready(item),
5757
None => this.inner_stream.set(None),
5858
}
5959
}

tests/stream.rs

-2
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ impl Stream for Interchanger {
154154
}
155155
}
156156

157-
// https://github.com/async-rs/async-std/pull/701
158157
#[test]
159158
fn flat_map_doesnt_poll_completed_inner_stream() {
160159
task::block_on(async {
@@ -169,7 +168,6 @@ fn flat_map_doesnt_poll_completed_inner_stream() {
169168
});
170169
}
171170

172-
// https://github.com/async-rs/async-std/pull/701
173171
#[test]
174172
fn flatten_doesnt_poll_completed_inner_stream() {
175173
task::block_on(async {

0 commit comments

Comments
 (0)