-
Notifications
You must be signed in to change notification settings - Fork 689
Remove Copy from PollFd #2631
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
Remove Copy from PollFd #2631
Conversation
I'll wait for a positive signal from maintainers that this is a good solution before I add a changelog entry. |
This looks like a good approach to me. Could you please add a doctest that shows how to properly combine |
17b4048
to
2c7c5fd
Compare
Thanks @asomers. I believe This is ready for review and merge. I'm not sure why tier3 (i686-unknown-hurd-gnu) is failing; it appears to be unrelated to this change. |
Let me take a look at this Update: Looks like libc 0.2.172 is broken on hurd, it is not related to this PR Update: I will fix it in #2632 |
2c7c5fd
to
f969eb6
Compare
Hi @JonathonReinhart, you can rebase your branch to fix the CI issues |
PollFd implementing Copy makes it easy to accidentally refer to the wrong object after putting one into an array. Remove Copy to force move semantics. This also updates some related docs to improve overall clarity. This fixes nix-rust#2630
f969eb6
to
cbc0dcd
Compare
Looks like this is ready to be merged. |
What does this PR do
PollFd
implementingCopy
makes it easy to accidentally refer to the wrong object after putting one into an array.This PR removes
Copy
fromPollFd
. This fixes #2630.Checklist:
CONTRIBUTING.md