File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -178,13 +178,15 @@ pub fn check_external_links(site: &Site) -> Vec<String> {
178
178
}
179
179
}
180
180
181
+ // Get unique links count from Vec by creating a temporary HashSet.
182
+ let unique_links_count = HashSet :: < & str > :: from_iter (
183
+ checked_links. iter ( ) . map ( |link_def| link_def. external_link . as_str ( ) ) ,
184
+ )
185
+ . len ( ) ;
186
+
181
187
println ! (
182
188
"Checking {} external link(s). Skipping {} external link(s).{}" ,
183
- // Get unique links count from Vec by creating a temporary HashSet.
184
- HashSet :: <& str >:: from_iter(
185
- checked_links. iter( ) . map( |link_def| link_def. external_link. as_str( ) )
186
- )
187
- . len( ) ,
189
+ unique_links_count,
188
190
skipped_link_count,
189
191
if invalid_url_links == 0 {
190
192
"" . to_string( )
@@ -272,7 +274,7 @@ pub fn check_external_links(site: &Site) -> Vec<String> {
272
274
273
275
println ! (
274
276
"> Checked {} external link(s): {} error(s) found." ,
275
- checked_links . len ( ) ,
277
+ unique_links_count ,
276
278
errors. len( )
277
279
) ;
278
280
You can’t perform that action at this time.
0 commit comments