File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -553,7 +553,7 @@ fn metadata_config<'a>(
553553 . iter ( )
554554 . map ( |l| ( l. title . as_str ( ) , l. href . clone ( ) ) )
555555 . filter ( |( _, href) | !href. clone ( ) . is_internal ( ) )
556- . map ( |( title, href) | ( title, href. as_uri ( ) . unwrap ( ) ) )
556+ . map ( |( title, href) | ( title, href. as_uri ( ) . expect ( "Internal link not marked as internal" ) ) )
557557 . chain ( repo_url. into_iter ( ) . map ( |u| ( "Repository" , u) ) )
558558 . collect ( ) ;
559559
@@ -564,7 +564,7 @@ fn metadata_config<'a>(
564564 source_files,
565565 generated_files,
566566 licenses : & config. licences ,
567- links : links ,
567+ links,
568568 requirements : requirements?,
569569 build_tools : vec ! [ "gleam" ] ,
570570 }
Original file line number Diff line number Diff line change @@ -1001,7 +1001,7 @@ impl Href {
10011001 pub fn is_internal ( & self ) -> bool {
10021002 match self {
10031003 Href :: Internal ( _) => true ,
1004- _ => false ,
1004+ Href :: External ( _ ) => false ,
10051005 }
10061006 }
10071007
You can’t perform that action at this time.
0 commit comments