about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2022-08-17 04:58:26 +0900
committerTakayuki Maeda <takoyaki0316@gmail.com>2022-08-17 04:58:26 +0900
commit3a1aa376c55cd070474a8488a2cf30a600beeb2f (patch)
tree4d563855e188bee3face71e2a2f16e35886c3bc4
parent22c8c9c4014c63309524f218d92554ebfdf9621e (diff)
downloadrust-3a1aa376c55cd070474a8488a2cf30a600beeb2f.tar.gz
rust-3a1aa376c55cd070474a8488a2cf30a600beeb2f.zip
avoid a `&str` to `String` conversion
-rw-r--r--bench_data/glorious_old_parser2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench_data/glorious_old_parser b/bench_data/glorious_old_parser
index 7e900dfeb1e..764893daa12 100644
--- a/bench_data/glorious_old_parser
+++ b/bench_data/glorious_old_parser
@@ -1988,7 +1988,7 @@ impl<'a> Parser<'a> {
                     err.span_suggestion(
                         span,
                         "declare the type after the parameter binding",
-                        String::from("<identifier>: <type>"),
+                        "<identifier>: <type>",
                         Applicability::HasPlaceholders,
                     );
                 } else if require_name && is_trait_item {