@@ -73,10 +73,10 @@ const NOT_FOUND: &str = "failed to run 'cargo'";
7373
7474fn run_fmt ( dir : PathBuf , config : & Option < String > ) -> Result < ( ) > {
7575 let mut cmd = cargo ( ) ;
76- cmd. args ( & [ "fmt" , "--" ] ) ;
76+ cmd. args ( [ "fmt" , "--" ] ) ;
7777
7878 if let Some ( config) = config {
79- cmd. args ( & [ "--config" , config] ) ;
79+ cmd. args ( [ "--config" , config] ) ;
8080 }
8181
8282 cmd. current_dir ( dir) ;
@@ -94,7 +94,7 @@ fn run_check(dir: PathBuf, features: &Option<String>, all_features: bool) -> Res
9494 if all_features {
9595 cmd. arg ( "--all-features" ) ;
9696 } else if let Some ( features) = features {
97- cmd. args ( & [ "--features" , features] ) ;
97+ cmd. args ( [ "--features" , features] ) ;
9898 }
9999
100100 cmd. current_dir ( dir) ;
@@ -107,7 +107,7 @@ fn run_check(dir: PathBuf, features: &Option<String>, all_features: bool) -> Res
107107
108108fn run_clippy ( dir : PathBuf ) -> Result < ( ) > {
109109 let status = cargo ( )
110- . args ( & [ "clippy" , "--" , "-D" , "warnings" ] )
110+ . args ( [ "clippy" , "--" , "-D" , "warnings" ] )
111111 . current_dir ( dir)
112112 . status ( )
113113 . context ( NOT_FOUND ) ?;
@@ -160,7 +160,7 @@ fn is_rust_file<P: AsRef<Path>>(path: P) -> bool {
160160 return true ;
161161 }
162162 }
163- return false ;
163+ false
164164}
165165
166166fn cargo ( ) -> Command {
0 commit comments