remove unnecessary uses of clone
This commit is contained in:
parent
f34356eace
commit
ee40a67cd9
7 changed files with 7 additions and 7 deletions
|
@ -330,7 +330,7 @@ pub fn suggest_new_region_bound(
|
|||
Applicability::MaybeIncorrect,
|
||||
);
|
||||
}
|
||||
if let Some((param_span, param_ty)) = param.clone() {
|
||||
if let Some((param_span, ref param_ty)) = param {
|
||||
err.span_suggestion_verbose(
|
||||
param_span,
|
||||
add_static_bound,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue