cleanup: don't clone types that are Copy
This commit is contained in:
parent
9903b256a2
commit
71cd918dc7
5 changed files with 13 additions and 18 deletions
|
@ -217,7 +217,7 @@ pub fn early_report_macro_deprecation(
|
|||
suggestion_span: span,
|
||||
note: depr.note,
|
||||
path,
|
||||
since_kind: deprecated_since_kind(is_in_effect, depr.since.clone()),
|
||||
since_kind: deprecated_since_kind(is_in_effect, depr.since),
|
||||
};
|
||||
lint_buffer.buffer_lint(deprecation_lint(is_in_effect), node_id, span, diag);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue