1
Fork 0

Rollup merge of #120592 - trevyn:cleanup-to-string, r=Nilstrieb

Remove unnecessary `.to_string()`/`.as_str()`s
This commit is contained in:
Matthias Krüger 2024-02-03 21:29:43 +01:00 committed by GitHub
commit 968cff7cf3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 15 additions and 15 deletions

View file

@ -247,7 +247,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
err.span_suggestion_verbose(
assoc_name.span,
fluent::hir_analysis_assoc_item_not_found_similar_in_other_trait_with_bound_sugg,
suggested_name.to_string(),
suggested_name,
Applicability::MaybeIncorrect,
);
}