@@ -46,7 +46,7 @@ pub fn run(check: bool, verbose: bool) {
46
46
// dependency
47
47
if fs:: read_to_string ( project_root. join ( "Cargo.toml" ) )
48
48
. expect ( "Failed to read clippy Cargo.toml" )
49
- . contains ( & "[target.'cfg(NOT_A_PLATFORM)'.dependencies]" )
49
+ . contains ( "[target.'cfg(NOT_A_PLATFORM)'.dependencies]" )
50
50
{
51
51
return Err ( CliError :: IntellijSetupActive ) ;
52
52
}
@@ -193,10 +193,10 @@ fn rustfmt_test(context: &FmtContext) -> Result<(), CliError> {
193
193
let args = & [ "--version" ] ;
194
194
195
195
if context. verbose {
196
- println ! ( "{}" , format_command( & program, & dir, args) ) ;
196
+ println ! ( "{}" , format_command( program, & dir, args) ) ;
197
197
}
198
198
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 ( ) ?;
200
200
201
201
if output. status . success ( ) {
202
202
Ok ( ( ) )
@@ -207,7 +207,7 @@ fn rustfmt_test(context: &FmtContext) -> Result<(), CliError> {
207
207
Err ( CliError :: RustfmtNotInstalled )
208
208
} else {
209
209
Err ( CliError :: CommandFailed (
210
- format_command ( & program, & dir, args) ,
210
+ format_command ( program, & dir, args) ,
211
211
std:: str:: from_utf8 ( & output. stderr ) . unwrap_or ( "" ) . to_string ( ) ,
212
212
) )
213
213
}
0 commit comments