Skip to content

Commit a05b6a3

Browse files
committed
fix: mutable ref
1 parent 91ee4c7 commit a05b6a3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/stream/stream/unzip.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,9 @@ where
4646

4747
match next {
4848
Some((a, b)) => {
49-
let mut res = this.res.take().unwrap();
49+
let res = this.res.as_mut().unwrap();
5050
res.0.extend(Some(a));
5151
res.1.extend(Some(b));
52-
53-
*this.res = Some(res);
5452
}
5553
None => return Poll::Ready(this.res.take().unwrap()),
5654
}

0 commit comments

Comments
 (0)