-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add a case to lint_search_is_some
to handle searching strings
#6119
Merged
Commits on Nov 11, 2020
-
Added a lint as suggested in 6010 which recommends using
contains()
instead of `find()` follows by `is_some()` on strings Update clippy_lints/src/find_is_some_on_strs.rs Co-authored-by: Takayuki Nakata <f.seasons017@gmail.com> Update clippy_lints/src/methods/mod.rs Co-authored-by: Philipp Krones <hello@philkrones.com>
Configuration menu - View commit details
-
Copy full SHA for a1cf2d3 - Browse repository at this point
Copy the full SHA a1cf2d3View commit details -
Moved the tests for lint
search_is_some
to new files`search_is_some.rs` and `search_is_some_fixable.rs`
Configuration menu - View commit details
-
Copy full SHA for 431fcbc - Browse repository at this point
Copy the full SHA 431fcbcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 55dc822 - Browse repository at this point
Copy the full SHA 55dc822View commit details -
Co-authored-by: Philipp Krones <hello@philkrones.com>
Configuration menu - View commit details
-
Copy full SHA for e9612f3 - Browse repository at this point
Copy the full SHA e9612f3View commit details -
Co-authored-by: Philipp Krones <hello@philkrones.com>
Configuration menu - View commit details
-
Copy full SHA for fb74b48 - Browse repository at this point
Copy the full SHA fb74b48View commit details -
Added period back to lint
search_is_some
and ran`update-all-references.sh`
Configuration menu - View commit details
-
Copy full SHA for ee1b959 - Browse repository at this point
Copy the full SHA ee1b959View commit details -
Configuration menu - View commit details
-
Copy full SHA for fd30313 - Browse repository at this point
Copy the full SHA fd30313View commit details -
Update clippy_lints/src/methods/mod.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
Configuration menu - View commit details
-
Copy full SHA for 56d252c - Browse repository at this point
Copy the full SHA 56d252cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c1c50e - Browse repository at this point
Copy the full SHA 5c1c50eView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.