From 6b19cf9f7438c1ef715e5fb9a4dff508f8e74dae Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 15 Dec 2021 11:14:21 +1100 Subject: [PATCH] rustdoc: remove some unnecessary sigils. --- src/librustdoc/html/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)