From 7414d28e0bb9342c159b5e0e0db43bde11ef8c09 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 23 Apr 2021 17:10:23 +0200 Subject: [PATCH] Replace empty href with "#" --- src/librustdoc/html/render/print_item.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs index 42d7e9c8c93..925bf2272bd 100644 --- a/src/librustdoc/html/render/print_item.rs +++ b/src/librustdoc/html/render/print_item.rs @@ -75,7 +75,7 @@ pub(super) fn print_item(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer, ); } } - write!(buf, "{}", item.type_(), item.name.as_ref().unwrap()); + write!(buf, "{}", item.type_(), item.name.as_ref().unwrap()); write!( buf, "