Remove redundant clone
This commit is contained in:
parent
e331ae57df
commit
6a340741bd
1 changed files with 1 additions and 1 deletions
|
@ -1176,7 +1176,7 @@ fn create_lints_for_named_arguments_used_positionally(cx: &mut Context<'_, '_>)
|
||||||
|
|
||||||
cx.ecx.buffered_early_lint.push(BufferedEarlyLint {
|
cx.ecx.buffered_early_lint.push(BufferedEarlyLint {
|
||||||
span: MultiSpan::from_span(named_arg.positional_named_arg_span),
|
span: MultiSpan::from_span(named_arg.positional_named_arg_span),
|
||||||
msg: msg.clone().into(),
|
msg: msg.into(),
|
||||||
node_id: ast::CRATE_NODE_ID,
|
node_id: ast::CRATE_NODE_ID,
|
||||||
lint_id: LintId::of(&NAMED_ARGUMENTS_USED_POSITIONALLY),
|
lint_id: LintId::of(&NAMED_ARGUMENTS_USED_POSITIONALLY),
|
||||||
diagnostic: BuiltinLintDiagnostics::NamedArgumentUsedPositionally {
|
diagnostic: BuiltinLintDiagnostics::NamedArgumentUsedPositionally {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue