Skip to content

impl core::fmt::Display for Pid, Uid, Gid? #1439

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

Open
rusty-snake opened this issue Apr 8, 2025 · 1 comment · May be fixed by #1449
Open

impl core::fmt::Display for Pid, Uid, Gid? #1439

rusty-snake opened this issue Apr 8, 2025 · 1 comment · May be fixed by #1449

Comments

@rusty-snake
Copy link
Contributor

What do you think about implementing core::fmt::Display for Pid, Uid, Gid?

Display would be guaranteed to always print the integer representation.

Do you know other types in rustix where this would make sense.

@sunfishcode
Copy link
Member

That makes sense to me, for these simple integer wrapper types.

rusty-snake added a commit to rusty-snake/rustix that referenced this issue Apr 11, 2025
@rusty-snake rusty-snake linked a pull request Apr 11, 2025 that will close this issue
rusty-snake added a commit to rusty-snake/rustix that referenced this issue Apr 27, 2025
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 a pull request may close this issue.

2 participants