forked from mirror/async-std
fix: mutable ref
This commit is contained in:
parent
91ee4c7b9f
commit
a05b6a3810
1 changed files with 1 additions and 3 deletions
|
@ -46,11 +46,9 @@ where
|
|||
|
||||
match next {
|
||||
Some((a, b)) => {
|
||||
let mut res = this.res.take().unwrap();
|
||||
let res = this.res.as_mut().unwrap();
|
||||
res.0.extend(Some(a));
|
||||
res.1.extend(Some(b));
|
||||
|
||||
*this.res = Some(res);
|
||||
}
|
||||
None => return Poll::Ready(this.res.take().unwrap()),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue