From: finalchild Date: Thu, 18 Aug 2022 18:36:43 +0000 (+0900) Subject: Remove redundant clone X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=6a340741bde70856ece1cd99f61698e816436767;hp=e331ae57df08e6eab346a9caab3fc354ce61c5d5;p=rust.git Remove redundant clone --- diff --git a/compiler/rustc_builtin_macros/src/format.rs b/compiler/rustc_builtin_macros/src/format.rs index e76f5711b7b..fd517c1e121 100644 --- a/compiler/rustc_builtin_macros/src/format.rs +++ b/compiler/rustc_builtin_macros/src/format.rs @@ -1176,7 +1176,7 @@ fn create_lints_for_named_arguments_used_positionally(cx: &mut Context<'_, '_>) cx.ecx.buffered_early_lint.push(BufferedEarlyLint { span: MultiSpan::from_span(named_arg.positional_named_arg_span), - msg: msg.clone().into(), + msg: msg.into(), node_id: ast::CRATE_NODE_ID, lint_id: LintId::of(&NAMED_ARGUMENTS_USED_POSITIONALLY), diagnostic: BuiltinLintDiagnostics::NamedArgumentUsedPositionally {