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

Disable non_exhaustive for Rust enums #2

Merged
merged 1 commit into from Jul 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -14,4 +14,4 @@ licence-file = "LICENSE"
[dependencies]

[build-dependencies]
bindgen = "0.49.2"
bindgen = "0.49.3"
2 changes: 1 addition & 1 deletion build.rs
Expand Up @@ -16,7 +16,7 @@ fn main() {
// and functions only.
.whitelist_function("xc_.*")
// Keep C's enums as Rust's enums.
.default_enum_style(bindgen::EnumVariation::Rust)
.default_enum_style(bindgen::EnumVariation::Rust { non_exhaustive: false })
// Finish the builder and generate the bindings.
.generate()
// Unwrap the Result and panic on failure.
Expand Down