fix: mutable ref

This commit is contained in:
k-nasa 2019-11-16 01:36:53 +09:00
parent 91ee4c7b9f
commit a05b6a3810

View file

@ -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()),
}