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

Use Vec::drain() to move thread out of the vector #3248 #3249

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

andrei-21
Copy link
Contributor

@andrei-21 andrei-21 commented Jun 29, 2022

Use Vec::drain method which allows to move elements out of the vector. Then wrapping thread into Option is not needed.

@andrei-21 andrei-21 changed the title Use Vec::drain() to move thread out of the vector 2 Use Vec::drain() to move thread out of the vector #3248 Jun 29, 2022
@carols10cents carols10cents added this to the ch20 milestone Jul 5, 2022
Copy link
Contributor

@chriskrycho chriskrycho left a comment

Choose a reason for hiding this comment

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

  1. I like this directionally, and so am flagging it as one we might integrate as we do the revisions for the next edition of the book. I am not merging it at this point because we might (or might not! It’s not clear yet) make more sweeping revisions to this part.

  2. It looks like there are a number of extraneous changes around the listings’ HTML files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants