diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-04-23 17:10:23 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-06-01 21:19:27 +0200 |
| commit | 7414d28e0bb9342c159b5e0e0db43bde11ef8c09 (patch) | |
| tree | 32b904d7e625db99167fd84a930d03fc4926e08a | |
| parent | 7f9ab0300cd66f6f616e03ea90b2d71af474bf28 (diff) | |
| download | rust-7414d28e0bb9342c159b5e0e0db43bde11ef8c09.tar.gz rust-7414d28e0bb9342c159b5e0e0db43bde11ef8c09.zip | |
Replace empty href with "#"
| -rw-r--r-- | src/librustdoc/html/render/print_item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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, "<a class=\"{}\" href=\"\">{}</a>", item.type_(), item.name.as_ref().unwrap()); + write!(buf, "<a class=\"{}\" href=\"#\">{}</a>", item.type_(), item.name.as_ref().unwrap()); write!( buf, "<button id=\"copy-path\" onclick=\"copy_path(this)\">\ |
