Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 96ff235

Browse files
committed
condense matches on autolink
1 parent b7e3f52 commit 96ff235

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ide/src/doc_links.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ fn map_links<'e>(
385385
let (link_type, link_target_s, link_name) =
386386
callback(&end_link_target.take().unwrap(), &s);
387387
end_link_target = Some(CowStr::Boxed(link_target_s.into()));
388-
if !matches!(end_link_type, Some(link) if link == LinkType::Autolink) {
388+
if !matches!(end_link_type, Some(LinkType::Autolink)) {
389389
end_link_type = link_type;
390390
}
391391
Event::Text(CowStr::Boxed(link_name.into()))
@@ -394,7 +394,7 @@ fn map_links<'e>(
394394
let (link_type, link_target_s, link_name) =
395395
callback(&end_link_target.take().unwrap(), &s);
396396
end_link_target = Some(CowStr::Boxed(link_target_s.into()));
397-
if !matches!(end_link_type, Some(link) if link == LinkType::Autolink) {
397+
if !matches!(end_link_type, Some(LinkType::Autolink)) {
398398
end_link_type = link_type;
399399
}
400400
Event::Code(CowStr::Boxed(link_name.into()))

0 commit comments

Comments
 (0)