-
Notifications
You must be signed in to change notification settings - Fork 683
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
Add AsRawFd
for nix::dir::OwningIter
#1558
Comments
deantvv
added a commit
to deantvv/nix
that referenced
this issue
Oct 16, 2021
For issue nix-rust#1558
deantvv
added a commit
to deantvv/nix
that referenced
this issue
Feb 6, 2022
For issue nix-rust#1558
deantvv
added a commit
to deantvv/nix
that referenced
this issue
Feb 7, 2022
For issue nix-rust#1558
Close since it is already merge in #1563 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OwningIter
is just a wrapper aroundDir
which implementsAsRawFd
which makes this easy (or even trivial) to implement.The only thing that I could think of this may be unsound is after calling
drop()
onDir
will make theRawFd
invalid but this is the same asAsRawFd
forDir
which will also suffer from this issue. Link is the discussion ofAsRawFd
in stdlib.I can implement this if this feature is approved.
The text was updated successfully, but these errors were encountered: