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

feat: impl Into<OwnedFd> for owned fd types #2548

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

SteveLauC
Copy link
Member

@SteveLauC SteveLauC commented Nov 27, 2024

What does this PR do

Implements Into<OwnedFd> for x (Actually, it is From<x> for OwnedFd due to the clippy rule clippy::from_over_into) for types that are simply owned file descriptors.

Types like Dir, do not only contain a file descriptor, so they are not included in this PR.

Checklist:

  • I have read CONTRIBUTING.md
  • I have written necessary tests and rustdoc comments
  • A change log has been added if this PR modifies nix's API

@SteveLauC SteveLauC linked an issue Nov 27, 2024 that may be closed by this pull request
@SteveLauC
Copy link
Member Author

Hmm, I did not expect to see hurd CI broken here

@SteveLauC SteveLauC enabled auto-merge November 27, 2024 09:37
@SteveLauC SteveLauC added this pull request to the merge queue Nov 27, 2024
Merged via the queue into nix-rust:master with commit 7153ba1 Nov 27, 2024
39 checks passed
@SteveLauC SteveLauC deleted the feat/into_owned_fd branch November 27, 2024 10:08
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.

PtyMaster missing Into<OwnedFd>
1 participant