mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
avoid a &str
to String
conversion
This commit is contained in:
parent
22c8c9c401
commit
3a1aa376c5
1 changed files with 1 additions and 1 deletions
|
@ -1988,7 +1988,7 @@ impl<'a> Parser<'a> {
|
||||||
err.span_suggestion(
|
err.span_suggestion(
|
||||||
span,
|
span,
|
||||||
"declare the type after the parameter binding",
|
"declare the type after the parameter binding",
|
||||||
String::from("<identifier>: <type>"),
|
"<identifier>: <type>",
|
||||||
Applicability::HasPlaceholders,
|
Applicability::HasPlaceholders,
|
||||||
);
|
);
|
||||||
} else if require_name && is_trait_item {
|
} else if require_name && is_trait_item {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue