about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-04-13 22:18:28 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2022-04-13 22:18:28 +0200
commitbbd7ce690452f28d459643d97fbae89109cf5808 (patch)
treef5724f95a121a164d45952c104300ea96d2f3cd3 /compiler/rustc_errors/src
parent0d13f6afeba4935499abe0c9a07426c94492c94e (diff)
downloadrust-bbd7ce690452f28d459643d97fbae89109cf5808.tar.gz
rust-bbd7ce690452f28d459643d97fbae89109cf5808.zip
couple of clippy::perf fixes
Diffstat (limited to 'compiler/rustc_errors/src')
-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 c927fcb2109..4c1a3931864 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);