Skip to content

Commit

Permalink
Merge pull request #2 from tathanhdinh/exhaustive_rust_enum
Browse files Browse the repository at this point in the history
Disable non_exhaustive for Rust enums
  • Loading branch information
Wenzel committed Jul 1, 2019
2 parents 96efd8d + dea90e2 commit c921048
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -13,4 +13,4 @@ license = "GPL-3.0-only"
[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

0 comments on commit c921048

Please sign in to comment.