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

Relax lifetime requirements for FdSet::{insert, remove, contains} #2136

Merged
merged 4 commits into from
Oct 1, 2023

Conversation

asomers
Copy link
Member

@asomers asomers commented Sep 23, 2023

Fixes #2130

@asomers
Copy link
Member Author

asomers commented Sep 23, 2023

cc @SteveLauC

@SteveLauC
Copy link
Member

Seems that these functions should also take a BorrowedFd, just like #2134

&AsFd doesn't work because there are 'static types, like std::fs::File,
which implement AsFd.
CHANGELOG.md Outdated Show resolved Hide resolved
src/sys/select.rs Outdated Show resolved Hide resolved
src/sys/select.rs Outdated Show resolved Hide resolved
@SteveLauC SteveLauC self-assigned this Oct 1, 2023
@SteveLauC SteveLauC added this pull request to the merge queue Oct 1, 2023
Merged via the queue into master with commit c4ba877 Oct 1, 2023
35 checks passed
@SteveLauC SteveLauC deleted the fdset-lifetime branch October 1, 2023 11:11
@SteveLauC SteveLauC mentioned this pull request Nov 12, 2023
29 tasks
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.

FdSet is difficulty to use
2 participants