diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-08-17 04:58:26 +0900 |
|---|---|---|
| committer | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-08-17 04:58:26 +0900 |
| commit | 5a848c701b98bf99b7dd480dc95bf1227b134e55 (patch) | |
| tree | fa883f19de6c6fbe339c552976930e6ab39522fa | |
| parent | 1886aef0355cbb4666368a0b74609006b2221045 (diff) | |
| download | rust-5a848c701b98bf99b7dd480dc95bf1227b134e55.tar.gz rust-5a848c701b98bf99b7dd480dc95bf1227b134e55.zip | |
avoid a `&str` to `String` conversion
| -rw-r--r-- | src/tools/rust-analyzer/bench_data/glorious_old_parser | 2 |
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 { |
