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 | 3a1aa376c55cd070474a8488a2cf30a600beeb2f (patch) | |
| tree | 4d563855e188bee3face71e2a2f16e35886c3bc4 | |
| parent | 22c8c9c4014c63309524f218d92554ebfdf9621e (diff) | |
| download | rust-3a1aa376c55cd070474a8488a2cf30a600beeb2f.tar.gz rust-3a1aa376c55cd070474a8488a2cf30a600beeb2f.zip | |
avoid a `&str` to `String` conversion
| -rw-r--r-- | bench_data/glorious_old_parser | 2 |
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 { |
