about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 a4cdef9358b..b6cb0fbc76a 100644
--- a/src/librustdoc/html/format.rs
+++ b/src/librustdoc/html/format.rs
@@ -786,7 +786,7 @@ crate fn anchor<'a, 'cx: 'a>(
                 url,
                 short_ty,
                 join_with_double_colon(&fqp),
-                &*text.as_str()
+                text.as_str()
             )
         } else {
             write!(f, "{}", text)