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
..
2020-08-17 13:55:05 +01:00
2020-08-11 00:27:55 +02:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2020-06-10 01:35:47 +00:00
2020-01-07 18:38:12 +09:00
2020-04-19 21:00:25 +02:00
2019-12-21 16:20:30 +01:00
2020-11-08 12:40:41 +01:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2020-08-02 23:20:00 +08:00
2020-11-08 18:32:12 -05:00
2019-12-24 03:06:52 +07:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2020-11-08 07:00:35 -05:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2019-12-31 09:22:35 -08:00
2020-01-10 04:35:37 +09:00
2020-07-10 07:39:28 -04:00
2020-11-06 18:11:58 +01:00
2020-11-06 18:11:58 +01:00
2020-02-04 22:53:24 +01:00
2019-10-26 21:54:04 +02:00
2020-11-08 18:32:12 -05:00
2019-08-15 22:58:32 +02:00
2020-09-10 15:23:38 +02:00
2020-11-08 18:32:12 -05:00
2020-11-08 18:32:12 -05:00
2019-12-27 22:07:55 +09:00
2020-11-08 18:32:12 -05:00
2019-08-13 21:50:52 +02:00
2020-03-29 22:22:36 +02:00
2020-01-12 06:08:58 +09:00
2020-11-08 18:32:12 -05:00
2020-10-30 13:09:27 -05:00
2020-10-30 13:09:27 -05:00
2020-10-30 13:09:27 -05:00
2020-03-10 18:00:37 -04:00
2019-11-15 22:39:27 +01:00