-
Notifications
You must be signed in to change notification settings - Fork 666
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
FdSet is difficulty to use #2130
Comments
Yes, your analysis is correct. Would you care to submit a PR? |
asomers
added a commit
that referenced
this issue
Sep 23, 2023
asomers
added a commit
that referenced
this issue
Sep 23, 2023
asomers
added a commit
that referenced
this issue
Sep 30, 2023
github-merge-queue bot
pushed a commit
that referenced
this issue
Oct 1, 2023
) * Relax lifetime requirements for FdSet::{insert, remove, contains} Fixes #2130 * Take BorrowedFd as the argument for FdSet::{insert, remove, contains} &AsFd doesn't work because there are 'static types, like std::fs::File, which implement AsFd. * fix changelog & remove unused entries * fix wrong PR number --------- Co-authored-by: Steve Lau <stevelauc@outlook.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code like
fails to compile with
Workaround is to store results of all used
fdset.contains()
in temporary variables likeBut this is ugly.
Would it be possible to change the FdSet functions to
?
The text was updated successfully, but these errors were encountered: