remove redundant clones
This commit is contained in:
parent
bbb36fe545
commit
665d4ea98d
2 changed files with 3 additions and 3 deletions
|
@ -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 },
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue