Skip to content

Conversation

@oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Feb 29, 2016

fixes #469


/// **What it does:** Warns on enum variants that are prefixed or suffixed by the same characters
///
/// **Why is this bad?** Enum variant names should specify their variant, not the enum, too.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy and paste 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops

@oli-obk
Copy link
Contributor Author

oli-obk commented Feb 29, 2016

addressed comments

Manishearth added a commit that referenced this pull request Feb 29, 2016
lint ! and != in if expressions with else branches
@Manishearth Manishearth merged commit e256055 into rust-lang:master Feb 29, 2016
@oli-obk oli-obk deleted the swap_if_arms branch February 29, 2016 16:07
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.

if x != y { a } else { b } should be if x == y { b } else { a }

3 participants