ruabmbua / enet-sys

Raw rust bindings to the enet C library
MIT License
19 stars 14 forks source link

#[derive(Copy, Clone, PartialEq, Eq)] on ENetEventType #6

Closed Boscop closed 5 years ago

Boscop commented 6 years ago

Please #[derive(Copy, Clone, PartialEq, Eq)] on ENetEventType.

ruabmbua commented 6 years ago

I`ll do it.

ruabmbua commented 6 years ago

@Boscop, for me it seems like ENnetEventType is a

pub type _ENetEventType = u32;
pub use self::_ENetEventType as ENetEventType;

That means, it is essentially a u32, which already implements all the traits.

Boscop commented 6 years ago

Ah, sry, I was looking at the old code where ENetEventType was an enum (because I had to derive those traits in my fork).

Boscop commented 6 years ago

After switching to bindgen generation, did the API of the lib change in any way?