-
Notifications
You must be signed in to change notification settings - Fork 723
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
Added non-exhaustive enums to the CLI #2847
Conversation
Clippy errors look unrelated to my change but feel free to correct me |
bindgen/lib.rs
Outdated
name_file.ends_with(".hxx") || | ||
name_file.ends_with(".hh") || | ||
name_file.ends_with(".h++") | ||
name_file.ends_with(".hpp") |
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... This must be my rustfmt settings. Strange, I'd have expected my IDE to grab them from the rustfmt.toml at the top
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.
you need nightly rust to format bindgen's code
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.
Thanks for catching this. Could you document this change in the Changelog? otherwise it looks good to me :)
Sorry for the delay! Should be sorted now |
Currently the CLI allows for all other enum builder options except for non-exhaustive rustified enums. This PR fixes the omission.
Solves #2846