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

runtime: mem::forget instead of keeping track of dropped state #2451

Merged
merged 1 commit into from
Apr 29, 2020

Conversation

udoprog
Copy link
Contributor

@udoprog udoprog commented Apr 27, 2020

Minor nit. We can make use of std::mem::forget to avoid running the Drop implementation instead of keeping track of it ourselves.

@Darksonn Darksonn added A-tokio Area: The main tokio crate C-maintenance Category: PRs that clean code up or issues documenting cleanup. M-runtime Module: tokio/runtime S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 29, 2020
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

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

This looks correct to me.

@Darksonn Darksonn requested a review from hawkw April 29, 2020 09:42
@carllerche carllerche merged commit 2c53beb into tokio-rs:master Apr 29, 2020
@carllerche
Copy link
Member

Thanks 👍 these clarity PRs are appreciated.

@Darksonn Darksonn removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-maintenance Category: PRs that clean code up or issues documenting cleanup. M-runtime Module: tokio/runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants