@@ -336,7 +336,7 @@ fn add_target() {
336336 ) ;
337337 expect_ok ( config, & [ "rustup" , "default" , "nightly" ] ) ;
338338 expect_ok ( config, & [ "rustup" , "target" , "add" , clitools:: CROSS_ARCH1 ] ) ;
339- assert ! ( config. rustupdir. has( & path) ) ;
339+ assert ! ( config. rustupdir. has( path) ) ;
340340 } ) ;
341341}
342342
@@ -378,13 +378,13 @@ fn add_remove_multiple_targets() {
378378 & this_host_triple( ) ,
379379 clitools:: CROSS_ARCH1
380380 ) ;
381- assert ! ( config. rustupdir. has( & path) ) ;
381+ assert ! ( config. rustupdir. has( path) ) ;
382382 let path = format ! (
383383 "toolchains/nightly-{}/lib/rustlib/{}/lib/libstd.rlib" ,
384384 & this_host_triple( ) ,
385385 clitools:: CROSS_ARCH2
386386 ) ;
387- assert ! ( config. rustupdir. has( & path) ) ;
387+ assert ! ( config. rustupdir. has( path) ) ;
388388
389389 expect_ok (
390390 config,
@@ -401,13 +401,13 @@ fn add_remove_multiple_targets() {
401401 & this_host_triple( ) ,
402402 clitools:: CROSS_ARCH1
403403 ) ;
404- assert ! ( !config. rustupdir. has( & path) ) ;
404+ assert ! ( !config. rustupdir. has( path) ) ;
405405 let path = format ! (
406406 "toolchains/nightly-{}/lib/rustlib/{}/lib/libstd.rlib" ,
407407 & this_host_triple( ) ,
408408 clitools:: CROSS_ARCH2
409409 ) ;
410- assert ! ( !config. rustupdir. has( & path) ) ;
410+ assert ! ( !config. rustupdir. has( path) ) ;
411411 } ) ;
412412}
413413
@@ -449,7 +449,7 @@ fn add_target_explicit() {
449449 clitools:: CROSS_ARCH1 ,
450450 ] ,
451451 ) ;
452- assert ! ( config. rustupdir. has( & path) ) ;
452+ assert ! ( config. rustupdir. has( path) ) ;
453453 } ) ;
454454}
455455
@@ -528,7 +528,7 @@ fn fallback_cargo_calls_correct_rustc() {
528528 let cargo_bin_path = config. cargodir . join ( "bin" ) ;
529529 fs:: create_dir_all ( & cargo_bin_path) . unwrap ( ) ;
530530 let rustc_path = cargo_bin_path. join ( format ! ( "rustc{EXE_SUFFIX}" ) ) ;
531- fs:: hard_link ( & rustup_path, & rustc_path) . unwrap ( ) ;
531+ fs:: hard_link ( rustup_path, & rustc_path) . unwrap ( ) ;
532532
533533 // Install a custom toolchain and a nightly toolchain for the cargo fallback
534534 let path = config. customdir . join ( "custom-1" ) ;
@@ -1309,7 +1309,7 @@ fn add_component() {
13091309 "toolchains/stable-{}/lib/rustlib/src/rust-src/foo.rs" ,
13101310 this_host_triple( )
13111311 ) ;
1312- assert ! ( config. rustupdir. has( & path) ) ;
1312+ assert ! ( config. rustupdir. has( path) ) ;
13131313 } ) ;
13141314}
13151315
@@ -1527,7 +1527,7 @@ fn file_override_path_no_options() {
15271527 let cwd = config. current_dir ( ) ;
15281528 let toolchain_path = cwd. join ( "ephemeral" ) ;
15291529 let toolchain_bin = toolchain_path. join ( "bin" ) ;
1530- fs:: create_dir_all ( & toolchain_bin) . unwrap ( ) ;
1530+ fs:: create_dir_all ( toolchain_bin) . unwrap ( ) ;
15311531
15321532 let toolchain_file = cwd. join ( "rust-toolchain.toml" ) ;
15331533 raw:: write_file (
@@ -1575,7 +1575,7 @@ fn file_override_path_xor_channel() {
15751575 let cwd = config. current_dir ( ) ;
15761576 let toolchain_path = cwd. join ( "ephemeral" ) ;
15771577 let toolchain_bin = toolchain_path. join ( "bin" ) ;
1578- fs:: create_dir_all ( & toolchain_bin) . unwrap ( ) ;
1578+ fs:: create_dir_all ( toolchain_bin) . unwrap ( ) ;
15791579
15801580 let toolchain_file = cwd. join ( "rust-toolchain.toml" ) ;
15811581 raw:: write_file (
0 commit comments