Skip to content

Commit

Permalink
remove usage of UnsafeCell::get_mut for compat
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev committed May 8, 2021
1 parent a0c7d31 commit 984c173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures-util/src/stream/futures_unordered/iter.rs
Expand Up @@ -46,7 +46,7 @@ impl<Fut: Unpin> Iterator for IntoIter<Fut> {

unsafe {
// Moving out of the future is safe because it is `Unpin`
let future = (**task).future.get_mut().take().unwrap();
let future = (*(**task).future.get()).take().unwrap();

// Mutable access to a previously shared `FuturesUnordered` implies
// that the other threads already released the object before the
Expand Down

0 comments on commit 984c173

Please sign in to comment.