@@ -947,7 +947,7 @@ fn show_toolchain_toolchain_file_override_not_installed() {
947
947
948
948
// I'm not sure this should really be erroring when the toolchain
949
949
// is not installed; just capturing the behavior.
950
- let mut cmd = clitools:: cmd ( config, "rustup" , & [ "show" ] ) ;
950
+ let mut cmd = clitools:: cmd ( config, "rustup" , [ "show" ] ) ;
951
951
clitools:: env ( config, & mut cmd) ;
952
952
let out = cmd. output ( ) . unwrap ( ) ;
953
953
assert ! ( !out. status. success( ) ) ;
@@ -965,7 +965,7 @@ fn show_toolchain_override_not_installed() {
965
965
setup ( & |config| {
966
966
expect_ok ( config, & [ "rustup" , "override" , "add" , "nightly" ] ) ;
967
967
expect_ok ( config, & [ "rustup" , "toolchain" , "remove" , "nightly" ] ) ;
968
- let mut cmd = clitools:: cmd ( config, "rustup" , & [ "show" ] ) ;
968
+ let mut cmd = clitools:: cmd ( config, "rustup" , [ "show" ] ) ;
969
969
clitools:: env ( config, & mut cmd) ;
970
970
let out = cmd. output ( ) . unwrap ( ) ;
971
971
assert ! ( out. status. success( ) ) ;
@@ -1015,7 +1015,7 @@ fn override_set_unset_with_path() {
1015
1015
fn show_toolchain_env ( ) {
1016
1016
setup ( & |config| {
1017
1017
expect_ok ( config, & [ "rustup" , "default" , "nightly" ] ) ;
1018
- let mut cmd = clitools:: cmd ( config, "rustup" , & [ "show" ] ) ;
1018
+ let mut cmd = clitools:: cmd ( config, "rustup" , [ "show" ] ) ;
1019
1019
clitools:: env ( config, & mut cmd) ;
1020
1020
cmd. env ( "RUSTUP_TOOLCHAIN" , "nightly" ) ;
1021
1021
let out = cmd. output ( ) . unwrap ( ) ;
@@ -1039,7 +1039,7 @@ nightly-{0} (environment override by RUSTUP_TOOLCHAIN)
1039
1039
#[ test]
1040
1040
fn show_toolchain_env_not_installed ( ) {
1041
1041
setup ( & |config| {
1042
- let mut cmd = clitools:: cmd ( config, "rustup" , & [ "show" ] ) ;
1042
+ let mut cmd = clitools:: cmd ( config, "rustup" , [ "show" ] ) ;
1043
1043
clitools:: env ( config, & mut cmd) ;
1044
1044
cmd. env ( "RUSTUP_TOOLCHAIN" , "nightly" ) ;
1045
1045
let out = cmd. output ( ) . unwrap ( ) ;
@@ -1197,7 +1197,7 @@ fn update_doesnt_update_non_tracking_channels() {
1197
1197
setup ( & |config| {
1198
1198
expect_ok ( config, & [ "rustup" , "default" , "nightly" ] ) ;
1199
1199
expect_ok ( config, & [ "rustup" , "update" , "nightly-2015-01-01" ] ) ;
1200
- let mut cmd = clitools:: cmd ( config, "rustup" , & [ "update" ] ) ;
1200
+ let mut cmd = clitools:: cmd ( config, "rustup" , [ "update" ] ) ;
1201
1201
clitools:: env ( config, & mut cmd) ;
1202
1202
let out = cmd. output ( ) . unwrap ( ) ;
1203
1203
let stderr = String :: from_utf8 ( out. stderr ) . unwrap ( ) ;
@@ -1261,7 +1261,7 @@ fn toolchain_update_is_like_update() {
1261
1261
fn toolchain_uninstall_is_like_uninstall ( ) {
1262
1262
setup ( & |config| {
1263
1263
expect_ok ( config, & [ "rustup" , "uninstall" , "nightly" ] ) ;
1264
- let mut cmd = clitools:: cmd ( config, "rustup" , & [ "show" ] ) ;
1264
+ let mut cmd = clitools:: cmd ( config, "rustup" , [ "show" ] ) ;
1265
1265
clitools:: env ( config, & mut cmd) ;
1266
1266
let out = cmd. output ( ) . unwrap ( ) ;
1267
1267
assert ! ( out. status. success( ) ) ;
@@ -1324,7 +1324,7 @@ fn remove_component() {
1324
1324
) ) ;
1325
1325
assert ! ( config. rustupdir. has( & path) ) ;
1326
1326
expect_ok ( config, & [ "rustup" , "component" , "remove" , "rust-src" ] ) ;
1327
- assert ! ( !config. rustupdir. has( & path. parent( ) . unwrap( ) ) ) ;
1327
+ assert ! ( !config. rustupdir. has( path. parent( ) . unwrap( ) ) ) ;
1328
1328
} ) ;
1329
1329
}
1330
1330
@@ -1355,7 +1355,7 @@ fn add_remove_multiple_components() {
1355
1355
this_host_triple( ) ,
1356
1356
file
1357
1357
) ) ;
1358
- assert ! ( !config. rustupdir. has( & path. parent( ) . unwrap( ) ) ) ;
1358
+ assert ! ( !config. rustupdir. has( path. parent( ) . unwrap( ) ) ) ;
1359
1359
}
1360
1360
} ) ;
1361
1361
}
@@ -1387,7 +1387,7 @@ fn env_override_path() {
1387
1387
. join ( "toolchains" )
1388
1388
. join ( format ! ( "nightly-{}" , this_host_triple( ) ) ) ;
1389
1389
1390
- let mut cmd = clitools:: cmd ( config, "rustc" , & [ "--version" ] ) ;
1390
+ let mut cmd = clitools:: cmd ( config, "rustc" , [ "--version" ] ) ;
1391
1391
clitools:: env ( config, & mut cmd) ;
1392
1392
cmd. env ( "RUSTUP_TOOLCHAIN" , toolchain_path. to_str ( ) . unwrap ( ) ) ;
1393
1393
@@ -1871,7 +1871,7 @@ fn env_override_beats_file_override() {
1871
1871
let toolchain_file = cwd. join ( "rust-toolchain" ) ;
1872
1872
raw:: write_file ( & toolchain_file, "nightly" ) . unwrap ( ) ;
1873
1873
1874
- let mut cmd = clitools:: cmd ( config, "rustc" , & [ "--version" ] ) ;
1874
+ let mut cmd = clitools:: cmd ( config, "rustc" , [ "--version" ] ) ;
1875
1875
clitools:: env ( config, & mut cmd) ;
1876
1876
cmd. env ( "RUSTUP_TOOLCHAIN" , "beta" ) ;
1877
1877
@@ -1963,7 +1963,7 @@ fn docs_with_path() {
1963
1963
expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
1964
1964
expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" ] ) ;
1965
1965
1966
- let mut cmd = clitools:: cmd ( config, "rustup" , & [ "doc" , "--path" ] ) ;
1966
+ let mut cmd = clitools:: cmd ( config, "rustup" , [ "doc" , "--path" ] ) ;
1967
1967
clitools:: env ( config, & mut cmd) ;
1968
1968
1969
1969
let out = cmd. output ( ) . unwrap ( ) ;
@@ -1973,7 +1973,7 @@ fn docs_with_path() {
1973
1973
let mut cmd = clitools:: cmd (
1974
1974
config,
1975
1975
"rustup" ,
1976
- & [ "doc" , "--path" , "--toolchain" , "nightly" ] ,
1976
+ [ "doc" , "--path" , "--toolchain" , "nightly" ] ,
1977
1977
) ;
1978
1978
clitools:: env ( config, & mut cmd) ;
1979
1979
@@ -1989,7 +1989,7 @@ fn docs_topical_with_path() {
1989
1989
expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" ] ) ;
1990
1990
1991
1991
for ( topic, path) in mock:: topical_doc_data:: test_cases ( ) {
1992
- let mut cmd = clitools:: cmd ( config, "rustup" , & [ "doc" , "--path" , topic] ) ;
1992
+ let mut cmd = clitools:: cmd ( config, "rustup" , [ "doc" , "--path" , topic] ) ;
1993
1993
clitools:: env ( config, & mut cmd) ;
1994
1994
1995
1995
let out = cmd. output ( ) . unwrap ( ) ;
@@ -2143,7 +2143,7 @@ fn check_unix_settings_fallback() {
2143
2143
)
2144
2144
. unwrap ( ) ;
2145
2145
2146
- let mut cmd = clitools:: cmd ( config, "rustup" , & [ "default" ] ) ;
2146
+ let mut cmd = clitools:: cmd ( config, "rustup" , [ "default" ] ) ;
2147
2147
clitools:: env ( config, & mut cmd) ;
2148
2148
2149
2149
// Override the path to the fallback settings file to be the mock file
@@ -2191,7 +2191,7 @@ fn dont_warn_on_partial_build() {
2191
2191
let mut cmd = clitools:: cmd (
2192
2192
config,
2193
2193
"rustup" ,
2194
- & [ "toolchain" , "install" , & format ! ( "nightly-{}" , arch) ] ,
2194
+ [ "toolchain" , "install" , & format ! ( "nightly-{}" , arch) ] ,
2195
2195
) ;
2196
2196
clitools:: env ( config, & mut cmd) ;
2197
2197
let out = cmd. output ( ) . unwrap ( ) ;
0 commit comments