Removed unnecessary links + hotfix

This commit is contained in:
Oleg Nosov 2020-06-12 18:18:40 +03:00
parent 924e5a3f41
commit df22d87d09
No known key found for this signature in database
GPG key ID: DE90B83800644E24
2 changed files with 1 additions and 3 deletions

View file

@ -53,7 +53,7 @@ where
loop {
if let Some(inner) = this.inner_stream.as_mut().as_pin_mut() {
match futures_core::ready!(inner.poll_next(cx)) {
item @ Some(_) => return Poll::Ready(next_item),
item @ Some(_) => return Poll::Ready(item),
None => this.inner_stream.set(None),
}
}

View file

@ -154,7 +154,6 @@ impl Stream for Interchanger {
}
}
// https://github.com/async-rs/async-std/pull/701
#[test]
fn flat_map_doesnt_poll_completed_inner_stream() {
task::block_on(async {
@ -169,7 +168,6 @@ fn flat_map_doesnt_poll_completed_inner_stream() {
});
}
// https://github.com/async-rs/async-std/pull/701
#[test]
fn flatten_doesnt_poll_completed_inner_stream() {
task::block_on(async {