about summary refs log tree commit diff
path: root/compiler/rustc_errors
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-04-16 14:25:56 +0200
committerGitHub <noreply@github.com>2022-04-16 14:25:56 +0200
commit91847c43cc70d8d113185d46019ae93c3f92fb36 (patch)
treef470aab06321102834b9287cae923ee5a4931df9 /compiler/rustc_errors
parent0a8acac7a316d89167045bb9cf9e279fe12d3a9c (diff)
parentbbd7ce690452f28d459643d97fbae89109cf5808 (diff)
downloadrust-91847c43cc70d8d113185d46019ae93c3f92fb36.tar.gz
rust-91847c43cc70d8d113185d46019ae93c3f92fb36.zip
Rollup merge of #96023 - matthiaskrgr:clippyper1304, r=lcnr
couple of clippy::perf fixes
Diffstat (limited to 'compiler/rustc_errors')
-rw-r--r--compiler/rustc_errors/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index cfad1fc01ab..416bc4e2e3b 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -1208,7 +1208,7 @@ impl HandlerInner {
             (0, 0) => return,
             (0, _) => self.emitter.emit_diagnostic(&Diagnostic::new(
                 Level::Warning,
-                DiagnosticMessage::Str(warnings.to_owned()),
+                DiagnosticMessage::Str(warnings),
             )),
             (_, 0) => {
                 let _ = self.fatal(&errors);