fix: add docs and remove unnecessary check

This commit is contained in:
rainy-me 2022-05-05 13:41:33 +09:00
parent 5f4351fbb6
commit ddff1b22f9
2 changed files with 8 additions and 6 deletions

View file

@ -374,8 +374,8 @@ fn map_links<'e>(
// holds the origin link target on start event and the rewritten one on end event
let mut end_link_target: Option<CowStr> = None;
// normally link's type is determined by the type of link tag in the end event,
// however in same cases we want to change the link type.
// For example, Shortcut type doesn't make sense for url links
// however in same cases we want to change the link type, for example,
// `Shortcut` type doesn't make sense for url links
let mut end_link_type: Option<LinkType> = None;
events.map(move |evt| match evt {