Skip to content

Commit

Permalink
avoid a &str to String conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
TaKO8Ki committed Aug 16, 2022
1 parent 1886aef commit 5a848c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/rust-analyzer/bench_data/glorious_old_parser
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5a848c7

Please sign in to comment.