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 @@ -528,7 +528,7 @@ fn metadata_config<'a>(
528528 . iter ( )
529529 . map ( |l| ( l. title . as_str ( ) , l. href . clone ( ) ) )
530530 . filter ( |( _, href) | !href. clone ( ) . is_internal ( ) )
531- . map ( |( title, href) | ( title, href. as_uri ( ) . unwrap ( ) ) )
531+ . map ( |( title, href) | ( title, href. as_uri ( ) . expect ( "Internal link not marked as internal" ) ) )
532532 . chain ( repo_url. into_iter ( ) . map ( |u| ( "Repository" , u) ) )
533533 . collect ( ) ;
534534
@@ -539,7 +539,7 @@ fn metadata_config<'a>(
539539 source_files,
540540 generated_files,
541541 licenses : & config. licences ,
542- links : links ,
542+ links,
543543 requirements : requirements?,
544544 build_tools : vec ! [ "gleam" ] ,
545545 }
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