@@ -45,16 +45,16 @@ fn usage<T: Args>(utils: &UtilityMap<T>) {
4545}
4646
4747/// Generates the coreutils app for the utility map
48- fn gen_coreutils_app < T : Args > ( util_map : & UtilityMap < T > ) -> clap :: Command {
49- let mut command = clap :: Command :: new ( "coreutils" ) ;
48+ fn gen_coreutils_app < T : Args > ( util_map : & UtilityMap < T > ) -> Command {
49+ let mut command = Command :: new ( "coreutils" ) ;
5050 for ( name, ( _, sub_app) ) in util_map {
5151 // Recreate a small subcommand with only the relevant info
5252 // (name & short description)
5353 let about = sub_app ( )
5454 . get_about ( )
5555 . expect ( "Could not get the 'about'" )
5656 . to_string ( ) ;
57- let sub_app = clap :: Command :: new ( name) . about ( about) ;
57+ let sub_app = Command :: new ( name) . about ( about) ;
5858 command = command. subcommand ( sub_app) ;
5959 }
6060 command
@@ -172,7 +172,7 @@ fn main() -> io::Result<()> {
172172 }
173173 let utils = util_map :: < Box < dyn Iterator < Item = OsString > > > ( ) ;
174174 match std:: fs:: create_dir ( "docs/src/utils/" ) {
175- Err ( e) if e. kind ( ) == std :: io:: ErrorKind :: AlreadyExists => Ok ( ( ) ) ,
175+ Err ( e) if e. kind ( ) == io:: ErrorKind :: AlreadyExists => Ok ( ( ) ) ,
176176 x => x,
177177 } ?;
178178
@@ -202,7 +202,7 @@ fn main() -> io::Result<()> {
202202 let mut map = HashMap :: new ( ) ;
203203 for platform in [ "unix" , "macos" , "windows" , "unix_android" ] {
204204 let platform_utils: Vec < String > = String :: from_utf8 (
205- std :: process:: Command :: new ( "./util/show-utils.sh" )
205+ process:: Command :: new ( "./util/show-utils.sh" )
206206 . arg ( format ! ( "--features=feat_os_{platform}" ) )
207207 . output ( ) ?
208208 . stdout ,
@@ -217,7 +217,7 @@ fn main() -> io::Result<()> {
217217
218218 // Linux is a special case because it can support selinux
219219 let platform_utils: Vec < String > = String :: from_utf8 (
220- std :: process:: Command :: new ( "./util/show-utils.sh" )
220+ process:: Command :: new ( "./util/show-utils.sh" )
221221 . arg ( "--features=feat_os_unix feat_selinux" )
222222 . output ( ) ?
223223 . stdout ,
@@ -547,7 +547,7 @@ fn write_zip_examples(
547547 } ;
548548
549549 match format_examples ( content, output_markdown) {
550- Err ( e) => Err ( std :: io:: Error :: other ( format ! (
550+ Err ( e) => Err ( io:: Error :: other ( format ! (
551551 "Failed to format the tldr examples of {name}: {e}"
552552 ) ) ) ,
553553 Ok ( s) => Ok ( s) ,
0 commit comments