]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_lint/src/pass_by_value.rs
Rollup merge of #107656 - jonhoo:bump-rust-installer, r=Mark-Simulacrum
[rust.git] / compiler / rustc_lint / src / pass_by_value.rs
index 57482a9edba880761fd97b38a0b4dc567aba419d..392e13f2fa94165d802ac24c0913934dd5d43d1b 100644 (file)
@@ -32,7 +32,7 @@ fn check_ty(&mut self, cx: &LateContext<'_>, ty: &'tcx hir::Ty<'tcx>) {
                     cx.emit_spanned_lint(
                         PASS_BY_VALUE,
                         ty.span,
-                        PassByValueDiag { ty: t.clone(), suggestion: ty.span },
+                        PassByValueDiag { ty: t, suggestion: ty.span },
                     );
                 }
             }