Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: borrow_mut error in future.rs #14

Merged
merged 2 commits into from
Jul 4, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Jul 4, 2024

No description provided.

@@ -141,9 +139,10 @@ where
Poll::Ready(result) => {
inner.future_or_output = FutureOrOutput::Output(result.clone());
drop(inner); // stop borrow_mut
let wakers = std::mem::take(
&mut *self.0.child_waker_state.wakers.borrow_mut(),
);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think maybe this one is the one that caused the issue? I just changed them all to use blocks to be sure because I always get bitten by this.

@dsherret dsherret merged commit 81324e4 into denoland:main Jul 4, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants