mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
fix: add docs and remove unnecessary check
This commit is contained in:
parent
5f4351fbb6
commit
ddff1b22f9
2 changed files with 8 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue