2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-16 10:49:55 +00:00

refactor: change to as_mut

This commit is contained in:
k-nasa 2019-11-16 01:54:09 +09:00
parent 6cbf48f12d
commit 7d616c695d

View file

@ -44,15 +44,12 @@ where
match next {
Some(v) => {
let mut res = this.res.take().unwrap();
let res = this.res.as_mut().unwrap();
if (this.f)(&v) {
res.0.extend(Some(v))
} else {
res.1.extend(Some(v))
}
*this.res = Some(res);
}
None => return Poll::Ready(this.res.take().unwrap()),
}