Skip to content

Commit 6a34074

Browse files
committed
Remove redundant clone
1 parent e331ae5 commit 6a34074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_builtin_macros/src/format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ fn create_lints_for_named_arguments_used_positionally(cx: &mut Context<'_, '_>)
11761176

11771177
cx.ecx.buffered_early_lint.push(BufferedEarlyLint {
11781178
span: MultiSpan::from_span(named_arg.positional_named_arg_span),
1179-
msg: msg.clone().into(),
1179+
msg: msg.into(),
11801180
node_id: ast::CRATE_NODE_ID,
11811181
lint_id: LintId::of(&NAMED_ARGUMENTS_USED_POSITIONALLY),
11821182
diagnostic: BuiltinLintDiagnostics::NamedArgumentUsedPositionally {

0 commit comments

Comments
 (0)