@@ -167,11 +167,7 @@ Default host triple? [{0}]
167
167
#[ test]
168
168
fn installer_shows_default_toolchain_as_stable ( ) {
169
169
let cx = CliTestContext :: from ( Scenario :: SimpleV2 ) ;
170
- let out = run_input (
171
- & cx. config ,
172
- & [ "rustup-init" , "--no-modify-path" ] ,
173
- "2\n \n " ,
174
- ) ;
170
+ let out = run_input ( & cx. config , & [ "rustup-init" , "--no-modify-path" ] , "2\n \n " ) ;
175
171
176
172
println ! ( "-- stdout --\n {}" , out. stdout) ;
177
173
println ! ( "-- stderr --\n {}" , out. stderr) ;
@@ -207,11 +203,7 @@ Default toolchain? (stable/beta/nightly/none) [nightly]
207
203
#[ test]
208
204
fn installer_shows_default_profile ( ) {
209
205
let cx = CliTestContext :: from ( Scenario :: SimpleV2 ) ;
210
- let out = run_input (
211
- & cx. config ,
212
- & [ "rustup-init" , "--no-modify-path" ] ,
213
- "2\n \n \n " ,
214
- ) ;
206
+ let out = run_input ( & cx. config , & [ "rustup-init" , "--no-modify-path" ] , "2\n \n \n " ) ;
215
207
216
208
println ! ( "-- stdout --\n {}" , out. stdout) ;
217
209
println ! ( "-- stderr --\n {}" , out. stderr) ;
@@ -275,11 +267,7 @@ Modify PATH variable? (y/N)
275
267
#[ test]
276
268
fn user_says_nope ( ) {
277
269
let cx = CliTestContext :: from ( Scenario :: SimpleV2 ) ;
278
- let out = run_input (
279
- & cx. config ,
280
- & [ "rustup-init" , "--no-modify-path" ] ,
281
- "n\n \n " ,
282
- ) ;
270
+ let out = run_input ( & cx. config , & [ "rustup-init" , "--no-modify-path" ] , "n\n \n " ) ;
283
271
assert ! ( out. ok) ;
284
272
assert ! ( !cx. config. cargodir. join( "bin" ) . exists( ) ) ;
285
273
}
@@ -470,7 +458,7 @@ fn test_prompt_fail_if_rustup_sh_already_installed_reply_nothing() {
470
458
fn test_prompt_fail_if_rustup_sh_already_installed_reply_no ( ) {
471
459
let cx = CliTestContext :: from ( Scenario :: SimpleV2 ) ;
472
460
cx. config . create_rustup_sh_metadata ( ) ;
473
- let out = run_input ( & mut cx. config , & [ "rustup-init" , "--no-modify-path" ] , "no\n " ) ;
461
+ let out = run_input ( & cx. config , & [ "rustup-init" , "--no-modify-path" ] , "no\n " ) ;
474
462
assert ! ( !out. ok) ;
475
463
assert ! ( out
476
464
. stderr
@@ -483,10 +471,10 @@ fn test_prompt_fail_if_rustup_sh_already_installed_reply_no() {
483
471
484
472
#[ test]
485
473
fn test_prompt_succeed_if_rustup_sh_already_installed_reply_yes ( ) {
486
- let mut cx = CliTestContext :: from ( Scenario :: SimpleV2 ) ;
474
+ let cx = CliTestContext :: from ( Scenario :: SimpleV2 ) ;
487
475
cx. config . create_rustup_sh_metadata ( ) ;
488
476
let out = run_input (
489
- & mut cx. config ,
477
+ & cx. config ,
490
478
& [ "rustup-init" , "--no-modify-path" ] ,
491
479
"yes\n \n \n " ,
492
480
) ;
@@ -508,7 +496,7 @@ fn installing_when_already_installed_updates_toolchain() {
508
496
let mut cx = CliTestContext :: from ( Scenario :: SimpleV2 ) ;
509
497
cx. config
510
498
. expect_ok ( & [ "rustup-init" , "-y" , "--no-modify-path" ] ) ;
511
- let out = run_input ( & mut cx. config , & [ "rustup-init" , "--no-modify-path" ] , "\n \n " ) ;
499
+ let out = run_input ( & cx. config , & [ "rustup-init" , "--no-modify-path" ] , "\n \n " ) ;
512
500
println ! ( "stdout:\n {}\n ...\n " , out. stdout) ;
513
501
assert ! ( out
514
502
. stdout
0 commit comments