-
Notifications
You must be signed in to change notification settings - Fork 672
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
Rename Flags EventFlag and MemFdCreateFlag #2476
Conversation
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.
Existing changes look good, thanks!
Though you need to address the CI failures, i.e., rename the usages on other platforms as well.
And can we have something like this to help users migrate:
#[deprecated(since = "0.30.0", note = "Use `EvFlags instead`")]
pub type EventFlag = EvFlags;
Also, a changelog entry is needed, see this on how to add one. |
eb300f1
to
4be7d73
Compare
@@ -11,7 +11,7 @@ fn test_struct_kevent() { | |||
let actual = KEvent::new( | |||
0xdead_beef, | |||
EventFilter::EVFILT_READ, |
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.
@asomers, any idea what we should do to things like this enum EventFilter
?
use nix::sys::event::{EvFlags, EventFilter};
Honestly, it feels weird to me when putting them together 🥲, one aims to be short, typical C-style, one aims to be self-explanatory.
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.
If does seem odd now. I think they'll need hard to remember like this. We should probably make the two names more consistent.
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.
Yeah
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 good, thank you:)
thank you too |
Let's merge this first. |
relates to #317
What does this PR do
Rename Flags
Checklist:
CONTRIBUTING.md