Skip to content

Commit ae1a1ef

Browse files
committed
rustdoc: use a template to generate Hrefs
1 parent f98a271 commit ae1a1ef

File tree

7 files changed

+254
-214
lines changed

7 files changed

+254
-214
lines changed

src/librustdoc/clean/types.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,8 @@ impl Item {
461461
.iter()
462462
.filter_map(|ItemLink { link: s, link_text, page_id: id, ref fragment }| {
463463
debug!(?id);
464-
if let Ok((mut href, ..)) = href(*id, cx) {
464+
if let Ok((href, ..)) = href(*id, cx) {
465+
let mut href = href.render_string();
465466
debug!(?href);
466467
if let Some(ref fragment) = *fragment {
467468
fragment.render(&mut href, cx.tcx())

0 commit comments

Comments
 (0)