Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

message: derive MessageType from Eq #11

Merged
merged 1 commit into from
Jun 12, 2016

Conversation

mathstuf
Copy link
Contributor

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

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
Copy link
Contributor Author

The RFC is here.

@srwalter srwalter merged commit c24ab9a into srwalter:master Jun 12, 2016
@srwalter
Copy link
Owner

Thanks!

@mathstuf mathstuf deleted the messagetype-derive-eq branch June 12, 2016 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants