@@ -44,7 +44,7 @@ fn verify_fails_if_some_fails() {
44
44
fn run_single_compile_success ( ) {
45
45
Command :: cargo_bin ( "rustlings" )
46
46
. unwrap ( )
47
- . args ( & [ "run" , "compSuccess" ] )
47
+ . args ( [ "run" , "compSuccess" ] )
48
48
. current_dir ( "tests/fixture/success/" )
49
49
. assert ( )
50
50
. success ( ) ;
@@ -54,7 +54,7 @@ fn run_single_compile_success() {
54
54
fn run_single_compile_failure ( ) {
55
55
Command :: cargo_bin ( "rustlings" )
56
56
. unwrap ( )
57
- . args ( & [ "run" , "compFailure" ] )
57
+ . args ( [ "run" , "compFailure" ] )
58
58
. current_dir ( "tests/fixture/failure/" )
59
59
. assert ( )
60
60
. code ( 1 ) ;
@@ -64,7 +64,7 @@ fn run_single_compile_failure() {
64
64
fn run_single_test_success ( ) {
65
65
Command :: cargo_bin ( "rustlings" )
66
66
. unwrap ( )
67
- . args ( & [ "run" , "testSuccess" ] )
67
+ . args ( [ "run" , "testSuccess" ] )
68
68
. current_dir ( "tests/fixture/success/" )
69
69
. assert ( )
70
70
. success ( ) ;
@@ -74,7 +74,7 @@ fn run_single_test_success() {
74
74
fn run_single_test_failure ( ) {
75
75
Command :: cargo_bin ( "rustlings" )
76
76
. unwrap ( )
77
- . args ( & [ "run" , "testFailure" ] )
77
+ . args ( [ "run" , "testFailure" ] )
78
78
. current_dir ( "tests/fixture/failure/" )
79
79
. assert ( )
80
80
. code ( 1 ) ;
@@ -84,7 +84,7 @@ fn run_single_test_failure() {
84
84
fn run_single_test_not_passed ( ) {
85
85
Command :: cargo_bin ( "rustlings" )
86
86
. unwrap ( )
87
- . args ( & [ "run" , "testNotPassed.rs" ] )
87
+ . args ( [ "run" , "testNotPassed.rs" ] )
88
88
. current_dir ( "tests/fixture/failure/" )
89
89
. assert ( )
90
90
. code ( 1 ) ;
@@ -104,7 +104,7 @@ fn run_single_test_no_filename() {
104
104
fn run_single_test_no_exercise ( ) {
105
105
Command :: cargo_bin ( "rustlings" )
106
106
. unwrap ( )
107
- . args ( & [ "run" , "compNoExercise.rs" ] )
107
+ . args ( [ "run" , "compNoExercise.rs" ] )
108
108
. current_dir ( "tests/fixture/failure" )
109
109
. assert ( )
110
110
. code ( 1 ) ;
@@ -114,7 +114,7 @@ fn run_single_test_no_exercise() {
114
114
fn reset_single_exercise ( ) {
115
115
Command :: cargo_bin ( "rustlings" )
116
116
. unwrap ( )
117
- . args ( & [ "reset" , "intro1" ] )
117
+ . args ( [ "reset" , "intro1" ] )
118
118
. assert ( )
119
119
. code ( 0 ) ;
120
120
}
@@ -135,7 +135,7 @@ fn reset_no_exercise() {
135
135
fn get_hint_for_single_test ( ) {
136
136
Command :: cargo_bin ( "rustlings" )
137
137
. unwrap ( )
138
- . args ( & [ "hint" , "testFailure" ] )
138
+ . args ( [ "hint" , "testFailure" ] )
139
139
. current_dir ( "tests/fixture/failure" )
140
140
. assert ( )
141
141
. code ( 0 )
@@ -171,7 +171,7 @@ fn all_exercises_require_confirmation() {
171
171
fn run_compile_exercise_does_not_prompt ( ) {
172
172
Command :: cargo_bin ( "rustlings" )
173
173
. unwrap ( )
174
- . args ( & [ "run" , "pending_exercise" ] )
174
+ . args ( [ "run" , "pending_exercise" ] )
175
175
. current_dir ( "tests/fixture/state" )
176
176
. assert ( )
177
177
. code ( 0 )
@@ -182,7 +182,7 @@ fn run_compile_exercise_does_not_prompt() {
182
182
fn run_test_exercise_does_not_prompt ( ) {
183
183
Command :: cargo_bin ( "rustlings" )
184
184
. unwrap ( )
185
- . args ( & [ "run" , "pending_test_exercise" ] )
185
+ . args ( [ "run" , "pending_test_exercise" ] )
186
186
. current_dir ( "tests/fixture/state" )
187
187
. assert ( )
188
188
. code ( 0 )
@@ -193,7 +193,7 @@ fn run_test_exercise_does_not_prompt() {
193
193
fn run_single_test_success_with_output ( ) {
194
194
Command :: cargo_bin ( "rustlings" )
195
195
. unwrap ( )
196
- . args ( & [ "--nocapture" , "run" , "testSuccess" ] )
196
+ . args ( [ "--nocapture" , "run" , "testSuccess" ] )
197
197
. current_dir ( "tests/fixture/success/" )
198
198
. assert ( )
199
199
. code ( 0 )
@@ -204,7 +204,7 @@ fn run_single_test_success_with_output() {
204
204
fn run_single_test_success_without_output ( ) {
205
205
Command :: cargo_bin ( "rustlings" )
206
206
. unwrap ( )
207
- . args ( & [ "run" , "testSuccess" ] )
207
+ . args ( [ "run" , "testSuccess" ] )
208
208
. current_dir ( "tests/fixture/success/" )
209
209
. assert ( )
210
210
. code ( 0 )
@@ -215,7 +215,7 @@ fn run_single_test_success_without_output() {
215
215
fn run_rustlings_list ( ) {
216
216
Command :: cargo_bin ( "rustlings" )
217
217
. unwrap ( )
218
- . args ( & [ "list" ] )
218
+ . args ( [ "list" ] )
219
219
. current_dir ( "tests/fixture/success" )
220
220
. assert ( )
221
221
. success ( ) ;
@@ -225,7 +225,7 @@ fn run_rustlings_list() {
225
225
fn run_rustlings_list_no_pending ( ) {
226
226
Command :: cargo_bin ( "rustlings" )
227
227
. unwrap ( )
228
- . args ( & [ "list" ] )
228
+ . args ( [ "list" ] )
229
229
. current_dir ( "tests/fixture/success" )
230
230
. assert ( )
231
231
. success ( )
@@ -236,7 +236,7 @@ fn run_rustlings_list_no_pending() {
236
236
fn run_rustlings_list_both_done_and_pending ( ) {
237
237
Command :: cargo_bin ( "rustlings" )
238
238
. unwrap ( )
239
- . args ( & [ "list" ] )
239
+ . args ( [ "list" ] )
240
240
. current_dir ( "tests/fixture/state" )
241
241
. assert ( )
242
242
. success ( )
@@ -247,7 +247,7 @@ fn run_rustlings_list_both_done_and_pending() {
247
247
fn run_rustlings_list_without_pending ( ) {
248
248
Command :: cargo_bin ( "rustlings" )
249
249
. unwrap ( )
250
- . args ( & [ "list" , "--solved" ] )
250
+ . args ( [ "list" , "--solved" ] )
251
251
. current_dir ( "tests/fixture/state" )
252
252
. assert ( )
253
253
. success ( )
@@ -258,7 +258,7 @@ fn run_rustlings_list_without_pending() {
258
258
fn run_rustlings_list_without_done ( ) {
259
259
Command :: cargo_bin ( "rustlings" )
260
260
. unwrap ( )
261
- . args ( & [ "list" , "--unsolved" ] )
261
+ . args ( [ "list" , "--unsolved" ] )
262
262
. current_dir ( "tests/fixture/state" )
263
263
. assert ( )
264
264
. success ( )
0 commit comments