diff options
| author | rsulli55 <rsulli55@gmail.com> | 2020-10-25 18:11:57 -0700 |
|---|---|---|
| committer | Ryan Sullivant <rsulli55@gmail.com> | 2020-11-10 23:18:47 -0700 |
| commit | fb74b4802eda6da49f0ea9f2bc1ef238306c1329 (patch) | |
| tree | 25ea202ea03dbda0f7e8250e2b0937e45e62ec0b | |
| parent | e9612f3eca5566b601dda60c999be69e50f89cac (diff) | |
| download | rust-fb74b4802eda6da49f0ea9f2bc1ef238306c1329.tar.gz rust-fb74b4802eda6da49f0ea9f2bc1ef238306c1329.zip | |
Remove borrow
Co-authored-by: Philipp Krones <hello@philkrones.com>
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 4df1b3d197f..fc66bf0422f 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -3118,7 +3118,7 @@ fn lint_search_is_some<'tcx>( cx, SEARCH_IS_SOME, method_span.with_hi(expr.span.hi()), - &msg, + msg, "try this", format!("contains({})", find_arg), applicability, |
