Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented Aug 23, 2023

Pull Request Overview

This pull request enables the https://rust-lang.github.io/rust-clippy/master/index.html#/enum_g lint.

This should have been enabled long ago.

Testing Strategy

travis

TODO or Help Wanted

n/a

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

This should have been enabled long ago.
Copy link
Member

@lschuermann lschuermann left a comment

Choose a reason for hiding this comment

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

I hate that there's not a more ergonomic way to specify that matches use a given set of enum variants, but I agree that this is better. Specifically it prevents the pitfall of having dangling variants in a match, which are then converted to variables and match on anything.

@ppannuto ppannuto added the P-Upkeep This a relatively minor change, or one that is limited in scope, and requires less scrutiny. label Aug 23, 2023
@ppannuto ppannuto added this pull request to the merge queue Aug 23, 2023
Merged via the queue into master with commit 6541202 Aug 23, 2023
@ppannuto ppannuto deleted the clippy-D-enum_glob_use branch August 23, 2023 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-Upkeep This a relatively minor change, or one that is limited in scope, and requires less scrutiny.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants