1
Fork 0

remove redundant clones

This commit is contained in:
Matthias Krüger 2023-01-15 15:02:02 +01:00
parent bbb36fe545
commit 665d4ea98d
2 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ impl<'tcx> LateLintPass<'tcx> for PassByValue {
cx.emit_spanned_lint(
PASS_BY_VALUE,
ty.span,
PassByValueDiag { ty: t.clone(), suggestion: ty.span },
PassByValueDiag { ty: t, suggestion: ty.span },
);
}
}