1
Fork 0

avoid &str/Symbol to String conversions

This commit is contained in:
Takayuki Maeda 2022-07-25 22:40:00 +09:00
parent bf1a5e72f4
commit 051e98b7bf
6 changed files with 19 additions and 14 deletions

View file

@ -565,8 +565,7 @@ impl<'a> Resolver<'a> {
} else if let Some(sp) = sm.generate_fn_name_span(span) {
err.span_label(
sp,
"try adding a local generic parameter in this method instead"
.to_string(),
"try adding a local generic parameter in this method instead",
);
} else {
err.help("try using a local generic parameter instead");