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
commit5a848c701b98bf99b7dd480dc95bf1227b134e55 (patch)
treefa883f19de6c6fbe339c552976930e6ab39522fa
parent1886aef0355cbb4666368a0b74609006b2221045 (diff)
downloadrust-5a848c701b98bf99b7dd480dc95bf1227b134e55.tar.gz
rust-5a848c701b98bf99b7dd480dc95bf1227b134e55.zip
avoid a `&str` to `String` conversion
-rw-r--r--src/tools/rust-analyzer/bench_data/glorious_old_parser2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/bench_data/glorious_old_parser b/src/tools/rust-analyzer/bench_data/glorious_old_parser
index 7e900dfeb1e..764893daa12 100644
--- a/src/tools/rust-analyzer/bench_data/glorious_old_parser
+++ b/src/tools/rust-analyzer/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 {