Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jeikabu committed Jan 1, 2020
1 parent 8166da6 commit b096d66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ fn build_bindgen() {
// Generate `pub const NNG_UNIT_EVENTS` instead of `nng_unit_enum_NNG_UNIT_EVENTS`
.prepend_enum_name(false)
// Generate `pub enum ...` instead of multiple `pub const ...`
.default_enum_style(bindgen::EnumVariation::Rust { non_exhaustive: false })
.default_enum_style(bindgen::EnumVariation::Rust {
non_exhaustive: false,
})
.constified_enum("nng_flag_enum")
// NNG_ESYSERR and NNG_ETRANERR are used like flag
.constified_enum("nng_errno_enum")
Expand Down

0 comments on commit b096d66

Please sign in to comment.