Rollup merge of #99508 - TaKO8Ki:avoid-symbol-to-string-conversion-in-BuiltinLintDiagnostics, r=compiler-errors
Avoid `Symbol` to `String` conversions follow-up to #99342
This commit is contained in:
commit
4b21ad26df
4 changed files with 11 additions and 14 deletions
|
@ -2603,9 +2603,9 @@ fn show_candidates(
|
|||
.skip(1)
|
||||
.all(|(_, descr, _, _)| descr == descr_first)
|
||||
{
|
||||
descr_first.to_string()
|
||||
descr_first
|
||||
} else {
|
||||
"item".to_string()
|
||||
"item"
|
||||
};
|
||||
let plural_descr =
|
||||
if descr.ends_with("s") { format!("{}es", descr) } else { format!("{}s", descr) };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue