1
Fork 0

Refactor RenderedLink into its own type

This commit is contained in:
Joshua Nelson 2020-07-05 23:05:18 -04:00
parent d5495e2155
commit 31a7b6e832
3 changed files with 27 additions and 19 deletions

View file

@ -63,7 +63,7 @@ use rustc_span::symbol::{sym, Symbol};
use serde::ser::SerializeSeq;
use serde::{Serialize, Serializer};
use crate::clean::{self, AttributesExt, Deprecation, GetDefId, SelfTy, TypeKind};
use crate::clean::{self, AttributesExt, Deprecation, GetDefId, RenderedLink, SelfTy, TypeKind};
use crate::config::RenderInfo;
use crate::config::RenderOptions;
use crate::docfs::{DocFS, PathError};
@ -1780,7 +1780,7 @@ fn render_markdown(
w: &mut Buffer,
cx: &Context,
md_text: &str,
links: Vec<(String, String)>,
links: Vec<RenderedLink>,
prefix: &str,
is_hidden: bool,
) {