@@ -947,7 +947,7 @@ fn show_toolchain_toolchain_file_override_not_installed() {
947947
948948 // I'm not sure this should really be erroring when the toolchain
949949 // 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" ] ) ;
951951 clitools:: env ( config, & mut cmd) ;
952952 let out = cmd. output ( ) . unwrap ( ) ;
953953 assert ! ( !out. status. success( ) ) ;
@@ -965,7 +965,7 @@ fn show_toolchain_override_not_installed() {
965965 setup ( & |config| {
966966 expect_ok ( config, & [ "rustup" , "override" , "add" , "nightly" ] ) ;
967967 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" ] ) ;
969969 clitools:: env ( config, & mut cmd) ;
970970 let out = cmd. output ( ) . unwrap ( ) ;
971971 assert ! ( out. status. success( ) ) ;
@@ -1015,7 +1015,7 @@ fn override_set_unset_with_path() {
10151015fn show_toolchain_env ( ) {
10161016 setup ( & |config| {
10171017 expect_ok ( config, & [ "rustup" , "default" , "nightly" ] ) ;
1018- let mut cmd = clitools:: cmd ( config, "rustup" , & [ "show" ] ) ;
1018+ let mut cmd = clitools:: cmd ( config, "rustup" , [ "show" ] ) ;
10191019 clitools:: env ( config, & mut cmd) ;
10201020 cmd. env ( "RUSTUP_TOOLCHAIN" , "nightly" ) ;
10211021 let out = cmd. output ( ) . unwrap ( ) ;
@@ -1039,7 +1039,7 @@ nightly-{0} (environment override by RUSTUP_TOOLCHAIN)
10391039#[ test]
10401040fn show_toolchain_env_not_installed ( ) {
10411041 setup ( & |config| {
1042- let mut cmd = clitools:: cmd ( config, "rustup" , & [ "show" ] ) ;
1042+ let mut cmd = clitools:: cmd ( config, "rustup" , [ "show" ] ) ;
10431043 clitools:: env ( config, & mut cmd) ;
10441044 cmd. env ( "RUSTUP_TOOLCHAIN" , "nightly" ) ;
10451045 let out = cmd. output ( ) . unwrap ( ) ;
@@ -1197,7 +1197,7 @@ fn update_doesnt_update_non_tracking_channels() {
11971197 setup ( & |config| {
11981198 expect_ok ( config, & [ "rustup" , "default" , "nightly" ] ) ;
11991199 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" ] ) ;
12011201 clitools:: env ( config, & mut cmd) ;
12021202 let out = cmd. output ( ) . unwrap ( ) ;
12031203 let stderr = String :: from_utf8 ( out. stderr ) . unwrap ( ) ;
@@ -1261,7 +1261,7 @@ fn toolchain_update_is_like_update() {
12611261fn toolchain_uninstall_is_like_uninstall ( ) {
12621262 setup ( & |config| {
12631263 expect_ok ( config, & [ "rustup" , "uninstall" , "nightly" ] ) ;
1264- let mut cmd = clitools:: cmd ( config, "rustup" , & [ "show" ] ) ;
1264+ let mut cmd = clitools:: cmd ( config, "rustup" , [ "show" ] ) ;
12651265 clitools:: env ( config, & mut cmd) ;
12661266 let out = cmd. output ( ) . unwrap ( ) ;
12671267 assert ! ( out. status. success( ) ) ;
@@ -1324,7 +1324,7 @@ fn remove_component() {
13241324 ) ) ;
13251325 assert ! ( config. rustupdir. has( & path) ) ;
13261326 expect_ok ( config, & [ "rustup" , "component" , "remove" , "rust-src" ] ) ;
1327- assert ! ( !config. rustupdir. has( & path. parent( ) . unwrap( ) ) ) ;
1327+ assert ! ( !config. rustupdir. has( path. parent( ) . unwrap( ) ) ) ;
13281328 } ) ;
13291329}
13301330
@@ -1355,7 +1355,7 @@ fn add_remove_multiple_components() {
13551355 this_host_triple( ) ,
13561356 file
13571357 ) ) ;
1358- assert ! ( !config. rustupdir. has( & path. parent( ) . unwrap( ) ) ) ;
1358+ assert ! ( !config. rustupdir. has( path. parent( ) . unwrap( ) ) ) ;
13591359 }
13601360 } ) ;
13611361}
@@ -1387,7 +1387,7 @@ fn env_override_path() {
13871387 . join ( "toolchains" )
13881388 . join ( format ! ( "nightly-{}" , this_host_triple( ) ) ) ;
13891389
1390- let mut cmd = clitools:: cmd ( config, "rustc" , & [ "--version" ] ) ;
1390+ let mut cmd = clitools:: cmd ( config, "rustc" , [ "--version" ] ) ;
13911391 clitools:: env ( config, & mut cmd) ;
13921392 cmd. env ( "RUSTUP_TOOLCHAIN" , toolchain_path. to_str ( ) . unwrap ( ) ) ;
13931393
@@ -1871,7 +1871,7 @@ fn env_override_beats_file_override() {
18711871 let toolchain_file = cwd. join ( "rust-toolchain" ) ;
18721872 raw:: write_file ( & toolchain_file, "nightly" ) . unwrap ( ) ;
18731873
1874- let mut cmd = clitools:: cmd ( config, "rustc" , & [ "--version" ] ) ;
1874+ let mut cmd = clitools:: cmd ( config, "rustc" , [ "--version" ] ) ;
18751875 clitools:: env ( config, & mut cmd) ;
18761876 cmd. env ( "RUSTUP_TOOLCHAIN" , "beta" ) ;
18771877
@@ -1963,7 +1963,7 @@ fn docs_with_path() {
19631963 expect_ok ( config, & [ "rustup" , "default" , "stable" ] ) ;
19641964 expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" ] ) ;
19651965
1966- let mut cmd = clitools:: cmd ( config, "rustup" , & [ "doc" , "--path" ] ) ;
1966+ let mut cmd = clitools:: cmd ( config, "rustup" , [ "doc" , "--path" ] ) ;
19671967 clitools:: env ( config, & mut cmd) ;
19681968
19691969 let out = cmd. output ( ) . unwrap ( ) ;
@@ -1973,7 +1973,7 @@ fn docs_with_path() {
19731973 let mut cmd = clitools:: cmd (
19741974 config,
19751975 "rustup" ,
1976- & [ "doc" , "--path" , "--toolchain" , "nightly" ] ,
1976+ [ "doc" , "--path" , "--toolchain" , "nightly" ] ,
19771977 ) ;
19781978 clitools:: env ( config, & mut cmd) ;
19791979
@@ -1989,7 +1989,7 @@ fn docs_topical_with_path() {
19891989 expect_ok ( config, & [ "rustup" , "toolchain" , "install" , "nightly" ] ) ;
19901990
19911991 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] ) ;
19931993 clitools:: env ( config, & mut cmd) ;
19941994
19951995 let out = cmd. output ( ) . unwrap ( ) ;
@@ -2143,7 +2143,7 @@ fn check_unix_settings_fallback() {
21432143 )
21442144 . unwrap ( ) ;
21452145
2146- let mut cmd = clitools:: cmd ( config, "rustup" , & [ "default" ] ) ;
2146+ let mut cmd = clitools:: cmd ( config, "rustup" , [ "default" ] ) ;
21472147 clitools:: env ( config, & mut cmd) ;
21482148
21492149 // Override the path to the fallback settings file to be the mock file
@@ -2191,7 +2191,7 @@ fn dont_warn_on_partial_build() {
21912191 let mut cmd = clitools:: cmd (
21922192 config,
21932193 "rustup" ,
2194- & [ "toolchain" , "install" , & format ! ( "nightly-{}" , arch) ] ,
2194+ [ "toolchain" , "install" , & format ! ( "nightly-{}" , arch) ] ,
21952195 ) ;
21962196 clitools:: env ( config, & mut cmd) ;
21972197 let out = cmd. output ( ) . unwrap ( ) ;
0 commit comments