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>(
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 ( ) ) )
You can’t perform that action at this time.
0 commit comments