@@ -46,7 +46,7 @@ pub fn run(check: bool, verbose: bool) {
4646 // dependency
4747 if fs:: read_to_string ( project_root. join ( "Cargo.toml" ) )
4848 . expect ( "Failed to read clippy Cargo.toml" )
49- . contains ( & "[target.'cfg(NOT_A_PLATFORM)'.dependencies]" )
49+ . contains ( "[target.'cfg(NOT_A_PLATFORM)'.dependencies]" )
5050 {
5151 return Err ( CliError :: IntellijSetupActive ) ;
5252 }
@@ -193,10 +193,10 @@ fn rustfmt_test(context: &FmtContext) -> Result<(), CliError> {
193193 let args = & [ "--version" ] ;
194194
195195 if context. verbose {
196- println ! ( "{}" , format_command( & program, & dir, args) ) ;
196+ println ! ( "{}" , format_command( program, & dir, args) ) ;
197197 }
198198
199- let output = Command :: new ( & program) . current_dir ( & dir) . args ( args. iter ( ) ) . output ( ) ?;
199+ let output = Command :: new ( program) . current_dir ( & dir) . args ( args. iter ( ) ) . output ( ) ?;
200200
201201 if output. status . success ( ) {
202202 Ok ( ( ) )
@@ -207,7 +207,7 @@ fn rustfmt_test(context: &FmtContext) -> Result<(), CliError> {
207207 Err ( CliError :: RustfmtNotInstalled )
208208 } else {
209209 Err ( CliError :: CommandFailed (
210- format_command ( & program, & dir, args) ,
210+ format_command ( program, & dir, args) ,
211211 std:: str:: from_utf8 ( & output. stderr ) . unwrap_or ( "" ) . to_string ( ) ,
212212 ) )
213213 }
0 commit comments