We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Just a suggestion for a small improvement:
This code gets a suggestion from clippy::match_like_matches_macro
match &args[1][..] { "--version" => true, _ => false, }
While this one does not, while it still benefits from being converted to the matches macro:
match &args[1][..] { "-v" => true, "--version" => true, _ => false, }
The text was updated successfully, but these errors were encountered:
Could you provide an example on playground? I tried this on playground but the lint was emitted.
Sorry, something went wrong.
#6216 may have fixed this case. I think this would be released at next beta release(Rust 1.49).
Yes, I remember putting this in the changelog for beta today. This is linted in nightly (and soon on beta)
No branches or pull requests
Just a suggestion for a small improvement:
This code gets a suggestion from clippy::match_like_matches_macro
While this one does not, while it still benefits from being converted to the matches macro:
The text was updated successfully, but these errors were encountered: