mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-25 11:25:06 +00:00
avoid a &str
to String
conversion
This commit is contained in:
parent
d60b555933
commit
b29780d089
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue