Remove borrow

Co-authored-by: Philipp Krones <hello@philkrones.com>
This commit is contained in:
rsulli55 2020-10-25 18:11:57 -07:00 committed by Ryan Sullivant
parent e9612f3eca
commit fb74b4802e

View File

@ -3118,7 +3118,7 @@ fn lint_search_is_some<'tcx>(
cx, cx,
SEARCH_IS_SOME, SEARCH_IS_SOME,
method_span.with_hi(expr.span.hi()), method_span.with_hi(expr.span.hi()),
&msg, msg,
"try this", "try this",
format!("contains({})", find_arg), format!("contains({})", find_arg),
applicability, applicability,