about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-06-17 12:21:50 +0200
committerGitHub <noreply@github.com>2022-06-17 12:21:50 +0200
commit2cc798bf5823b30fb3a7c0bbdc76b7acd8840bc9 (patch)
treec4355f521ba6d7d858a8c0ddec992d55d8fcf5ec
parent51e2d6a4a932f5c8a6d573ef5ff4d0866c24f8b8 (diff)
parent72c73f8038fb9a731dd8bdf7b086dc37182b8c25 (diff)
downloadrust-2cc798bf5823b30fb3a7c0bbdc76b7acd8840bc9.tar.gz
rust-2cc798bf5823b30fb3a7c0bbdc76b7acd8840bc9.zip
Rollup merge of #98191 - TaKO8Ki:remove-rest-of-unnecessary-to-string, r=Dylan-DPC
Remove the rest of unnecessary `to_string`

I removed most of unnecessary `to_string` in #98043. This patch removes the rest of them I missed.
-rw-r--r--clippy_utils/src/sugg.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/sugg.rs b/clippy_utils/src/sugg.rs
index 4d21ba8bd1d..aa119539b1b 100644
--- a/clippy_utils/src/sugg.rs
+++ b/clippy_utils/src/sugg.rs
@@ -771,7 +771,7 @@ impl<T: LintContext> DiagnosticExt<T> for rustc_errors::Diagnostic {
             }
         }
 
-        self.span_suggestion(remove_span, msg, String::new(), applicability);
+        self.span_suggestion(remove_span, msg, "", applicability);
     }
 }