File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ fn map_links<'e>(
385
385
let ( link_type, link_target_s, link_name) =
386
386
callback ( & end_link_target. take ( ) . unwrap ( ) , & s) ;
387
387
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 ) ) {
389
389
end_link_type = link_type;
390
390
}
391
391
Event :: Text ( CowStr :: Boxed ( link_name. into ( ) ) )
@@ -394,7 +394,7 @@ fn map_links<'e>(
394
394
let ( link_type, link_target_s, link_name) =
395
395
callback ( & end_link_target. take ( ) . unwrap ( ) , & s) ;
396
396
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 ) ) {
398
398
end_link_type = link_type;
399
399
}
400
400
Event :: Code ( CowStr :: Boxed ( link_name. into ( ) ) )
You can’t perform that action at this time.
0 commit comments