Skip to content

Commit

Permalink
Change a couple enums to be real types instead of aliases
Browse files Browse the repository at this point in the history
This avoids severe annoyance due to
rust-lang/rust#26264
  • Loading branch information
amluto committed Sep 8, 2016
1 parent 5d76a9c commit 2cd2d6b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,17 +284,16 @@ impl ::std::default::Default for Union_Unnamed11 {
pub type nfc_target_info = Union_Unnamed11;
#[derive(Copy, Clone)]
#[repr(u32)]
pub enum Enum_Unnamed12 {
pub enum nfc_baud_rate {
NBR_UNDEFINED = 0,
NBR_106 = 1,
NBR_212 = 2,
NBR_424 = 3,
NBR_847 = 4,
}
pub type nfc_baud_rate = Enum_Unnamed12;
#[derive(Copy, Clone)]
#[repr(u32)]
pub enum Enum_Unnamed13 {
pub enum nfc_modulation_type {
NMT_ISO14443A = 1,
NMT_JEWEL = 2,
NMT_ISO14443B = 3,
Expand All @@ -304,7 +303,6 @@ pub enum Enum_Unnamed13 {
NMT_FELICA = 7,
NMT_DEP = 8,
}
pub type nfc_modulation_type = Enum_Unnamed13;
#[derive(Copy, Clone)]
#[repr(u32)]
pub enum Enum_Unnamed14 { N_TARGET = 0, N_INITIATOR = 1, }
Expand Down

0 comments on commit 2cd2d6b

Please sign in to comment.