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

impl Display for InterfaceFlags #2206

Merged
merged 1 commit into from
Nov 26, 2023

Conversation

asomers
Copy link
Member

@asomers asomers commented Nov 24, 2023

And add a full example for getifaddrs.

What does this PR do

implements fmt::Display for InterfaceFlags, and adds an example for getifaddrs

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

Copy link
Member

@SteveLauC SteveLauC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM, but since #2205 has been merged, we should use aliases here

examples/getifaddrs.rs Outdated Show resolved Hide resolved
examples/getifaddrs.rs Outdated Show resolved Hide resolved
And add a full example for getifaddrs.
@asomers
Copy link
Member Author

asomers commented Nov 25, 2023

Rebased and applied cfg aliases.

@SteveLauC SteveLauC added this pull request to the merge queue Nov 26, 2023
Merged via the queue into nix-rust:master with commit bcbf0e7 Nov 26, 2023
34 checks passed
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.

None yet

2 participants