File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -275,16 +275,11 @@ fn main() -> io::Result<()> {
275275 }
276276
277277 println ! ( "Writing to utils" ) ;
278- let hashsum_cmd = utils. iter ( ) . find ( |n| * n. 0 == "hashsum" ) . unwrap ( ) . 1 . 1 ;
279278 for ( & name, ( _, command) ) in utils {
280279 let ( utils_name, usage_name, command) = match name {
281280 "[" => {
282281 continue ;
283282 }
284- name if is_hashsum_family ( name) => {
285- // These use the hashsum
286- ( "hashsum" , name, & hashsum_cmd)
287- }
288283 n => ( n, n, command) ,
289284 } ;
290285 let p = format ! ( "docs/src/utils/{usage_name}.md" ) ;
@@ -334,35 +329,10 @@ fn fix_usage(name: &str, usage: String) -> String {
334329 . collect :: < Vec < _ > > ( )
335330 . join ( "\n " )
336331 }
337- "hashsum" => usage,
338- name if is_hashsum_family ( name) => {
339- usage. replace ( "--<digest> " , "" ) . replace ( "hashsum" , name)
340- }
341332 _ => usage,
342333 }
343334}
344335
345- fn is_hashsum_family ( name : & str ) -> bool {
346- matches ! (
347- name,
348- "md5sum"
349- | "sha1sum"
350- | "sha224sum"
351- | "sha256sum"
352- | "sha384sum"
353- | "sha512sum"
354- | "sha3sum"
355- | "sha3-224sum"
356- | "sha3-256sum"
357- | "sha3-384sum"
358- | "sha3-512sum"
359- | "shake128sum"
360- | "shake256sum"
361- | "b2sum"
362- | "b3sum"
363- )
364- }
365-
366336struct MDWriter < ' a , ' b > {
367337 w : Box < dyn Write > ,
368338 command : Command ,
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ fn uudoc_check_sums() {
113113 . find ( |one_line| one_line. contains ( one_sum) )
114114 . unwrap ( ) ;
115115 let ( correct_path, content) = get_doc_file_from_output ( output_path) ;
116- let formatted = format ! ( "```\n {one_sum} [OPTIONS]... [FILE]...\n ```" ) ;
116+ let formatted = format ! ( "```\n {one_sum} [OPTIONS] [FILE]...\n ```" ) ;
117117 assert ! (
118118 content. contains( & formatted) ,
119119 "Content of {correct_path} does not contain the expected format: {formatted}" ,
You can’t perform that action at this time.
0 commit comments