-
Notifications
You must be signed in to change notification settings - Fork 666
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 a wrapper around if_nameindex #1445
Conversation
7094a2d
to
cb5290f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good! Don't forget to add a CHANGELOG entry.
7f88c6c
to
2a02f0b
Compare
src/net/if_.rs
Outdated
/// for iface in &interfaces { | ||
/// println!("Interface #{} is called {}", iface.index(), iface.name().to_string_lossy()); | ||
/// } | ||
/// # nix::Result::Ok(()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this works, but it would be in keeping with the style of the other doc tests if you return () here, and do an .unwrap()
above instead of ?
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, alright, hadn't noticed that pattern.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, though note that the #
means that line will be hidden from the docs; readers won't see that it returns Ok(())
2a02f0b
to
19182b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
bors r+
No description provided.