1
Fork 0

remove unnecessary uses of clone

This commit is contained in:
Takayuki Maeda 2022-12-13 02:06:24 +09:00
parent f34356eace
commit ee40a67cd9
7 changed files with 7 additions and 7 deletions

View file

@ -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,