diff options
| author | trevyn <230691+trevyn@users.noreply.github.com> | 2024-02-02 15:16:05 -0800 |
|---|---|---|
| committer | trevyn <230691+trevyn@users.noreply.github.com> | 2024-02-02 15:16:05 -0800 |
| commit | ef37dcb7dbb444751b825adb55f2246b4fa3a52b (patch) | |
| tree | f4e58aa36dc571adaa78647f55796801b4bdae41 /compiler/rustc_hir_analysis/src/astconv/errors.rs | |
| parent | bf3c6c5bed498f41ad815641319a1ad9bcecb8e8 (diff) | |
| download | rust-ef37dcb7dbb444751b825adb55f2246b4fa3a52b.tar.gz rust-ef37dcb7dbb444751b825adb55f2246b4fa3a52b.zip | |
Remove unnecessary `.to_string()`/`.as_str()`s
Diffstat (limited to 'compiler/rustc_hir_analysis/src/astconv/errors.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/astconv/errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/astconv/errors.rs b/compiler/rustc_hir_analysis/src/astconv/errors.rs index 407517b15ef..e67a44d96ad 100644 --- a/compiler/rustc_hir_analysis/src/astconv/errors.rs +++ b/compiler/rustc_hir_analysis/src/astconv/errors.rs @@ -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, ); } |
