@@ -336,7 +336,7 @@ fn add_target() {
336
336
) ;
337
337
expect_ok ( config, & [ "rustup" , "default" , "nightly" ] ) ;
338
338
expect_ok ( config, & [ "rustup" , "target" , "add" , clitools:: CROSS_ARCH1 ] ) ;
339
- assert ! ( config. rustupdir. has( & path) ) ;
339
+ assert ! ( config. rustupdir. has( path) ) ;
340
340
} ) ;
341
341
}
342
342
@@ -378,13 +378,13 @@ fn add_remove_multiple_targets() {
378
378
& this_host_triple( ) ,
379
379
clitools:: CROSS_ARCH1
380
380
) ;
381
- assert ! ( config. rustupdir. has( & path) ) ;
381
+ assert ! ( config. rustupdir. has( path) ) ;
382
382
let path = format ! (
383
383
"toolchains/nightly-{}/lib/rustlib/{}/lib/libstd.rlib" ,
384
384
& this_host_triple( ) ,
385
385
clitools:: CROSS_ARCH2
386
386
) ;
387
- assert ! ( config. rustupdir. has( & path) ) ;
387
+ assert ! ( config. rustupdir. has( path) ) ;
388
388
389
389
expect_ok (
390
390
config,
@@ -401,13 +401,13 @@ fn add_remove_multiple_targets() {
401
401
& this_host_triple( ) ,
402
402
clitools:: CROSS_ARCH1
403
403
) ;
404
- assert ! ( !config. rustupdir. has( & path) ) ;
404
+ assert ! ( !config. rustupdir. has( path) ) ;
405
405
let path = format ! (
406
406
"toolchains/nightly-{}/lib/rustlib/{}/lib/libstd.rlib" ,
407
407
& this_host_triple( ) ,
408
408
clitools:: CROSS_ARCH2
409
409
) ;
410
- assert ! ( !config. rustupdir. has( & path) ) ;
410
+ assert ! ( !config. rustupdir. has( path) ) ;
411
411
} ) ;
412
412
}
413
413
@@ -449,7 +449,7 @@ fn add_target_explicit() {
449
449
clitools:: CROSS_ARCH1 ,
450
450
] ,
451
451
) ;
452
- assert ! ( config. rustupdir. has( & path) ) ;
452
+ assert ! ( config. rustupdir. has( path) ) ;
453
453
} ) ;
454
454
}
455
455
@@ -528,7 +528,7 @@ fn fallback_cargo_calls_correct_rustc() {
528
528
let cargo_bin_path = config. cargodir . join ( "bin" ) ;
529
529
fs:: create_dir_all ( & cargo_bin_path) . unwrap ( ) ;
530
530
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 ( ) ;
532
532
533
533
// Install a custom toolchain and a nightly toolchain for the cargo fallback
534
534
let path = config. customdir . join ( "custom-1" ) ;
@@ -1309,7 +1309,7 @@ fn add_component() {
1309
1309
"toolchains/stable-{}/lib/rustlib/src/rust-src/foo.rs" ,
1310
1310
this_host_triple( )
1311
1311
) ;
1312
- assert ! ( config. rustupdir. has( & path) ) ;
1312
+ assert ! ( config. rustupdir. has( path) ) ;
1313
1313
} ) ;
1314
1314
}
1315
1315
@@ -1527,7 +1527,7 @@ fn file_override_path_no_options() {
1527
1527
let cwd = config. current_dir ( ) ;
1528
1528
let toolchain_path = cwd. join ( "ephemeral" ) ;
1529
1529
let toolchain_bin = toolchain_path. join ( "bin" ) ;
1530
- fs:: create_dir_all ( & toolchain_bin) . unwrap ( ) ;
1530
+ fs:: create_dir_all ( toolchain_bin) . unwrap ( ) ;
1531
1531
1532
1532
let toolchain_file = cwd. join ( "rust-toolchain.toml" ) ;
1533
1533
raw:: write_file (
@@ -1575,7 +1575,7 @@ fn file_override_path_xor_channel() {
1575
1575
let cwd = config. current_dir ( ) ;
1576
1576
let toolchain_path = cwd. join ( "ephemeral" ) ;
1577
1577
let toolchain_bin = toolchain_path. join ( "bin" ) ;
1578
- fs:: create_dir_all ( & toolchain_bin) . unwrap ( ) ;
1578
+ fs:: create_dir_all ( toolchain_bin) . unwrap ( ) ;
1579
1579
1580
1580
let toolchain_file = cwd. join ( "rust-toolchain.toml" ) ;
1581
1581
raw:: write_file (
0 commit comments