srwalter / dbus-bytestream

Native D-Bus implementation for Rust
GNU Lesser General Public License v2.1
6 stars 4 forks source link

message: derive MessageType from Eq #11

Closed mathstuf closed 8 years ago

mathstuf commented 8 years ago

New Rust is warning about using MessageType values in match blocks:

warning: to use a constant of type
`connection::dbus_bytestream::message::MessageType` in a pattern,
`connection::dbus_bytestream::message::MessageType` must be
annotated with `#[derive(PartialEq, Eq)]`,
#[warn(illegal_struct_or_enum_constant_pattern)] on by default
mathstuf commented 8 years ago

The RFC is here.

srwalter commented 8 years ago

Thanks!