about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorklensy <klensy@users.noreply.github.com>2024-11-23 23:16:26 +0300
committerklensy <klensy@users.noreply.github.com>2024-11-23 23:16:26 +0300
commitda4c050bb01ce992513cefbc25ce254a0e529e97 (patch)
treefb39d4c8af6919f650b02e612f9862e1188a6947 /src
parent2cf7908998e5010ffdedede39f88fa2590e9c830 (diff)
downloadrust-da4c050bb01ce992513cefbc25ce254a0e529e97.tar.gz
rust-da4c050bb01ce992513cefbc25ce254a0e529e97.zip
do not to_string, use display
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/format.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs
index 2f9e7976ca1..46bc2915d0a 100644
--- a/src/librustdoc/html/format.rs
+++ b/src/librustdoc/html/format.rs
@@ -1296,7 +1296,7 @@ impl clean::Impl {
                         self.print_type(inner_type, f, use_absolute, cx)?;
                         write!(f, ">")?;
                     } else {
-                        write!(f, "{}&lt;", anchor(ty.def_id(), last, cx).to_string())?;
+                        write!(f, "{}&lt;", anchor(ty.def_id(), last, cx))?;
                         self.print_type(inner_type, f, use_absolute, cx)?;
                         write!(f, "&gt;")?;
                     }