diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-03-30 21:13:15 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-03-30 21:13:15 +0200 |
| commit | 8c0a8f5f89725aae216e7d5646729ed021b93149 (patch) | |
| tree | 3c27a74e5ca918b8c81420801f97eb21c34c6033 /src/librustdoc | |
| parent | bb5c437a2ce9ccf2204c974300c5ea9eb32d3635 (diff) | |
| download | rust-8c0a8f5f89725aae216e7d5646729ed021b93149.tar.gz rust-8c0a8f5f89725aae216e7d5646729ed021b93149.zip | |
Remove unneeded `to_string` call
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/html/render/print_item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs index 6c9a5a955d7..1223b6c8002 100644 --- a/src/librustdoc/html/render/print_item.rs +++ b/src/librustdoc/html/render/print_item.rs @@ -465,7 +465,7 @@ fn extra_info_tags(item: &clean::Item, parent: &clean::Item, tcx: TyCtxt<'_>) -> fn item_function(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, f: &clean::Function) { let header = it.fn_header(cx.tcx()).expect("printing a function which isn't a function"); let constness = print_constness_with_space(&header.constness, it.const_stability(cx.tcx())); - let unsafety = header.unsafety.print_with_space().to_string(); + let unsafety = header.unsafety.print_with_space(); let abi = print_abi_with_space(header.abi).to_string(); let asyncness = header.asyncness.print_with_space(); let visibility = it.visibility.print_with_space(it.def_id, cx).to_string(); |
