rust/clippy_lints
bors ad4f82997a Auto merge of #6119 - rsulli55:find_is_some_on_strs, r=flip1995
Add a case to `lint_search_is_some` to handle searching strings

Fixes: #6010

This adds a lint which recommends using `contains()` instead of `find()` followed by `is_some()` on strings as suggested in #6010.

This was added as an additional case to
5af88e3c2d/clippy_lints/src/methods/mod.rs (L3037)

I would really appreciate any comments/suggestions for my code!

changelog: Added case to `lint_search_is_some` to handle searching strings
2020-11-16 08:45:10 +00:00
..
src Auto merge of #6119 - rsulli55:find_is_some_on_strs, r=flip1995 2020-11-16 08:45:10 +00:00
Cargo.toml Revert changes to Cargo.toml file 2020-10-26 00:53:51 +01:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.