diff options
| author | Ryan Sullivant <rsulli55@gmail.com> | 2020-10-05 21:23:36 -0700 |
|---|---|---|
| committer | Ryan Sullivant <rsulli55@gmail.com> | 2020-11-10 23:18:47 -0700 |
| commit | a1cf2d334d685fa11fdc96fc98f35292254e5651 (patch) | |
| tree | c5ffdfa657ebb5101b594882a88b5748b482811a /src | |
| parent | c4fc076e11b7125d481ee96df6d2e0c4ed493356 (diff) | |
| download | rust-a1cf2d334d685fa11fdc96fc98f35292254e5651.tar.gz rust-a1cf2d334d685fa11fdc96fc98f35292254e5651.zip | |
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/lintlist/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs index 4f1b56ed9be..69acd3d9b8b 100644 --- a/src/lintlist/mod.rs +++ b/src/lintlist/mod.rs @@ -2121,7 +2121,7 @@ vec