@@ -63,12 +63,12 @@ fn check_comments_lifecycle(comments_str: &str, args: Vec<&str>) {
6363 ) ;
6464 assert ! ( output. is_empty( ) ) ;
6565
66- let output = cli. run ( & [ "get" , "comments" , source. identifier ( ) ] ) ;
66+ let output = cli. run ( [ "get" , "comments" , source. identifier ( ) ] ) ;
6767 assert_eq ! ( output. lines( ) . count( ) , annotated_comments. len( ) ) ;
6868
6969 // Test getting a comment by id to check the content matches
7070 let test_comment = annotated_comments. get ( 0 ) . unwrap ( ) . comment . clone ( ) ;
71- let output = cli. run ( & [
71+ let output = cli. run ( [
7272 "get" ,
7373 "comment" ,
7474 & format ! ( "--source={}" , source. identifier( ) ) ,
@@ -85,15 +85,15 @@ fn check_comments_lifecycle(comments_str: &str, args: Vec<&str>) {
8585 ) ;
8686
8787 // Deleting one comment reduces the comment count in the source
88- let output = cli. run ( & [
88+ let output = cli. run ( [
8989 "delete" ,
9090 "comments" ,
9191 & format ! ( "--source={}" , source. identifier( ) ) ,
9292 & annotated_comments. get ( 0 ) . unwrap ( ) . comment . id . 0 ,
9393 ] ) ;
9494 assert ! ( output. is_empty( ) ) ;
9595
96- let output = cli. run ( & [ "get" , "comments" , source. identifier ( ) ] ) ;
96+ let output = cli. run ( [ "get" , "comments" , source. identifier ( ) ] ) ;
9797 assert_eq ! ( output. lines( ) . count( ) , annotated_comments. len( ) - 1 ) ;
9898
9999 // Delete all ids
@@ -106,7 +106,7 @@ fn check_comments_lifecycle(comments_str: &str, args: Vec<&str>) {
106106 let output = cli. run ( & args) ;
107107 assert ! ( output. is_empty( ) ) ;
108108
109- let output = cli. run ( & [ "get" , "comments" , source. identifier ( ) ] ) ;
109+ let output = cli. run ( [ "get" , "comments" , source. identifier ( ) ] ) ;
110110 assert ! ( output. is_empty( ) ) ;
111111}
112112
@@ -130,7 +130,7 @@ fn test_delete_comments_in_range() {
130130
131131 // Upload our test data
132132 let output = cli. run_with_stdin (
133- & [
133+ [
134134 "create" ,
135135 "comments" ,
136136 "--allow-duplicates" ,
@@ -141,11 +141,11 @@ fn test_delete_comments_in_range() {
141141 ) ;
142142 assert ! ( output. is_empty( ) ) ;
143143
144- let uploaded_all = cli. run ( & [ "get" , "comments" , source. identifier ( ) ] ) ;
144+ let uploaded_all = cli. run ( [ "get" , "comments" , source. identifier ( ) ] ) ;
145145 assert_eq ! ( uploaded_all. lines( ) . count( ) , num_comments) ;
146146
147147 // Download annotated comments and check count
148- let uploaded_annotated = cli. run ( & [
148+ let uploaded_annotated = cli. run ( [
149149 "get" ,
150150 "comments" ,
151151 "--reviewed-only" ,
@@ -163,7 +163,7 @@ fn test_delete_comments_in_range() {
163163 let to_timestamp_str = "2020-02-01T00:00:00Z" ;
164164 let to_timestamp = DateTime :: parse_from_rfc3339 ( to_timestamp_str) . unwrap ( ) ;
165165
166- cli. run ( & [
166+ cli. run ( [
167167 "delete" ,
168168 "bulk" ,
169169 "--source" ,
@@ -185,7 +185,7 @@ fn test_delete_comments_in_range() {
185185 . count ( ) ;
186186
187187 // Get all comments and check counts
188- let after_deleting_range = cli. run ( & [
188+ let after_deleting_range = cli. run ( [
189189 "get" ,
190190 "comments" ,
191191 "--dataset" ,
@@ -198,7 +198,7 @@ fn test_delete_comments_in_range() {
198198 ) ;
199199
200200 // Delete comments in source, excluding annotated comments
201- cli. run ( & [
201+ cli. run ( [
202202 "delete" ,
203203 "bulk" ,
204204 "--source" ,
@@ -207,7 +207,7 @@ fn test_delete_comments_in_range() {
207207 ] ) ;
208208
209209 // Get all comments and check that only annotated ones are left
210- let after_deleting_unannotated = cli. run ( & [
210+ let after_deleting_unannotated = cli. run ( [
211211 "get" ,
212212 "comments" ,
213213 "--dataset" ,
@@ -217,15 +217,15 @@ fn test_delete_comments_in_range() {
217217 assert_eq ! ( after_deleting_unannotated. lines( ) . count( ) , num_annotated) ;
218218
219219 // Delete all comments
220- cli. run ( & [
220+ cli. run ( [
221221 "delete" ,
222222 "bulk" ,
223223 & format ! ( "--source={}" , source. identifier( ) ) ,
224224 "--include-annotated=true" ,
225225 ] ) ;
226226
227227 // Get all comments and check there are none left
228- let after_deleting_all = cli. run ( & [
228+ let after_deleting_all = cli. run ( [
229229 "get" ,
230230 "comments" ,
231231 "--dataset" ,
0 commit comments