summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_lint/src/pass_by_value.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_lint/src/pass_by_value.rs')
-rw-r--r--compiler/rustc_lint/src/pass_by_value.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/pass_by_value.rs b/compiler/rustc_lint/src/pass_by_value.rs
index cad2cd7fa..fce750c9b 100644
--- a/compiler/rustc_lint/src/pass_by_value.rs
+++ b/compiler/rustc_lint/src/pass_by_value.rs
@@ -28,7 +28,7 @@ impl<'tcx> LateLintPass<'tcx> for PassByValue {
return;
}
}
- if let Some(t) = path_for_pass_by_value(cx, &inner_ty) {
+ if let Some(t) = path_for_pass_by_value(cx, inner_ty) {
cx.emit_spanned_lint(
PASS_BY_VALUE,
ty.span,