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)