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

refactor: change posix_spawn path arg to use NixPath #2596

Merged
merged 2 commits into from
Feb 2, 2025

Conversation

SteveLauC
Copy link
Member

What does this PR do

The path argument of posix_spawn() is a path, we should use our NixPath trait here. Change its type from &CStr to &P where P: NixPath + ?Sized

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

This interface has not been released, so no changelog is needed.

@SteveLauC SteveLauC marked this pull request as ready for review February 2, 2025 13:50
@SteveLauC SteveLauC added this pull request to the merge queue Feb 2, 2025
Merged via the queue into nix-rust:master with commit 1c0f88f Feb 2, 2025
37 checks passed
@SteveLauC SteveLauC deleted the refactor/posix_spawn_path_arg branch February 2, 2025 14:21
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.

1 participant