@@ -872,7 +872,7 @@ Available lint options:
872872
873873    let  print_lints = |lints :  Vec < & Lint > | { 
874874        for  lint in  lints { 
875-             let  name = lint. name_lower ( ) . replace ( "_" ,  "-" ) ; 
875+             let  name = lint. name_lower ( ) . replace ( '_' ,  "-" ) ; 
876876            println ! ( 
877877                "    {}  {:7.7}  {}" , 
878878                padded( & name) , 
@@ -908,10 +908,10 @@ Available lint options:
908908
909909    let  print_lint_groups = |lints :  Vec < ( & ' static  str ,  Vec < LintId > ) > | { 
910910        for  ( name,  to)  in  lints { 
911-             let  name = name. to_lowercase ( ) . replace ( "_" ,  "-" ) ; 
911+             let  name = name. to_lowercase ( ) . replace ( '_' ,  "-" ) ; 
912912            let  desc = to
913913                . into_iter ( ) 
914-                 . map ( |x| x. to_string ( ) . replace ( "_" ,  "-" ) ) 
914+                 . map ( |x| x. to_string ( ) . replace ( '_' ,  "-" ) ) 
915915                . collect :: < Vec < String > > ( ) 
916916                . join ( ", " ) ; 
917917            println ! ( "    {}  {}" ,  padded( & name) ,  desc) ; 
@@ -960,7 +960,7 @@ fn print_flag_list<T>(
960960        println ! ( 
961961            "    {} {:>width$}=val -- {}" , 
962962            cmdline_opt, 
963-             name. replace( "_" ,  "-" ) , 
963+             name. replace( '_' ,  "-" ) , 
964964            desc, 
965965            width = max_len
966966        ) ; 
@@ -1015,7 +1015,7 @@ pub fn handle_options(args: &[String]) -> Option<getopts::Matches> {
10151015                . iter ( ) 
10161016                . map ( |& ( name,  ..) | ( 'C' ,  name) ) 
10171017                . chain ( DB_OPTIONS . iter ( ) . map ( |& ( name,  ..) | ( 'Z' ,  name) ) ) 
1018-                 . find ( |& ( _,  name) | * opt == name. replace ( "_" ,  "-" ) ) 
1018+                 . find ( |& ( _,  name) | * opt == name. replace ( '_' ,  "-" ) ) 
10191019                . map ( |( flag,  _) | format ! ( "{}. Did you mean `-{} {}`?" ,  e,  flag,  opt) ) , 
10201020            _ => None , 
10211021        } ; 
0 commit comments