Skip to content

Commit 5a848c7

Browse files
committed
avoid a &str to String conversion
1 parent 1886aef commit 5a848c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/bench_data/glorious_old_parser

+1-1
Original file line numberDiff line numberDiff line change
@@ -1988,7 +1988,7 @@ impl<'a> Parser<'a> {
19881988
err.span_suggestion(
19891989
span,
19901990
"declare the type after the parameter binding",
1991-
String::from("<identifier>: <type>"),
1991+
"<identifier>: <type>",
19921992
Applicability::HasPlaceholders,
19931993
);
19941994
} else if require_name && is_trait_item {

0 commit comments

Comments
 (0)