@@ -247,7 +247,7 @@ mod tests {
247
247
]
248
248
. map ( |( k, v) | ( k. to_string ( ) , v. to_string ( ) ) ) ,
249
249
) ,
250
- price_accounts : vec ! [
250
+ price_accounts : [
251
251
solana_sdk:: pubkey:: Pubkey :: from_str (
252
252
"GVXRSBjFk6e6J3NbVPXohDJetcTjaeeuykUpbQF8UoMU" ,
253
253
)
@@ -260,7 +260,7 @@ mod tests {
260
260
"2V7t5NaKY7aGkwytCWQgvUYZfEr9XMwNChhJEakTExk6" ,
261
261
)
262
262
. unwrap ( ) ,
263
- ] ,
263
+ ] . into ( ) ,
264
264
} ,
265
265
) ,
266
266
(
@@ -280,7 +280,7 @@ mod tests {
280
280
]
281
281
. map ( |( k, v) | ( k. to_string ( ) , v. to_string ( ) ) ) ,
282
282
) ,
283
- price_accounts : vec ! [
283
+ price_accounts : [
284
284
solana_sdk:: pubkey:: Pubkey :: from_str (
285
285
"GG3FTE7xhc9Diy7dn9P6BWzoCrAEE4D3p5NBYrDAm5DD" ,
286
286
)
@@ -293,7 +293,7 @@ mod tests {
293
293
"GKNcUmNacSJo4S2Kq3DuYRYRGw3sNUfJ4tyqd198t6vQ" ,
294
294
)
295
295
. unwrap ( ) ,
296
- ] ,
296
+ ] . into ( ) ,
297
297
} ,
298
298
) ,
299
299
] ) ,
@@ -372,7 +372,7 @@ mod tests {
372
372
]
373
373
. map( |( k, v) | ( k. to_string( ) , v. to_string( ) ) ) ,
374
374
) ,
375
- price: vec! [
375
+ price: [
376
376
PriceAccountMetadata {
377
377
account: "GG3FTE7xhc9Diy7dn9P6BWzoCrAEE4D3p5NBYrDAm5DD" . to_string( ) ,
378
378
price_type: "price" . to_string( ) ,
@@ -388,7 +388,7 @@ mod tests {
388
388
price_type: "price" . to_string( ) ,
389
389
price_exponent: 2 ,
390
390
} ,
391
- ] ,
391
+ ] . into ( ) ,
392
392
} ,
393
393
ProductAccountMetadata {
394
394
account: "CkMrDWtmFJZcmAUC11qNaWymbXQKvnRx4cq1QudLav7t" . to_string( ) ,
@@ -403,7 +403,7 @@ mod tests {
403
403
]
404
404
. map( |( k, v) | ( k. to_string( ) , v. to_string( ) ) ) ,
405
405
) ,
406
- price: vec! [
406
+ price: [
407
407
PriceAccountMetadata {
408
408
account: "GVXRSBjFk6e6J3NbVPXohDJetcTjaeeuykUpbQF8UoMU" . to_string( ) ,
409
409
price_type: "price" . to_string( ) ,
@@ -419,7 +419,7 @@ mod tests {
419
419
price_type: "price" . to_string( ) ,
420
420
price_exponent: -6 ,
421
421
} ,
422
- ] ,
422
+ ] . into ( ) ,
423
423
} ,
424
424
] ;
425
425
@@ -482,7 +482,7 @@ mod tests {
482
482
} ,
483
483
schedule : Default :: default ( ) ,
484
484
publish_interval : None ,
485
- price_accounts : vec ! [
485
+ price_accounts : [
486
486
solana_sdk:: pubkey:: Pubkey :: from_str (
487
487
"GVXRSBjFk6e6J3NbVPXohDJetcTjaeeuykUpbQF8UoMU" ,
488
488
)
@@ -495,7 +495,7 @@ mod tests {
495
495
"2V7t5NaKY7aGkwytCWQgvUYZfEr9XMwNChhJEakTExk6" ,
496
496
)
497
497
. unwrap ( ) ,
498
- ] ,
498
+ ] . into ( ) ,
499
499
}
500
500
. into ( ) ,
501
501
) ,
@@ -544,7 +544,7 @@ mod tests {
544
544
} ,
545
545
schedule : Default :: default ( ) ,
546
546
publish_interval : None ,
547
- price_accounts : vec ! [
547
+ price_accounts : [
548
548
solana_sdk:: pubkey:: Pubkey :: from_str (
549
549
"GG3FTE7xhc9Diy7dn9P6BWzoCrAEE4D3p5NBYrDAm5DD" ,
550
550
)
@@ -557,7 +557,7 @@ mod tests {
557
557
"GKNcUmNacSJo4S2Kq3DuYRYRGw3sNUfJ4tyqd198t6vQ" ,
558
558
)
559
559
. unwrap ( ) ,
560
- ] ,
560
+ ] . into ( ) ,
561
561
}
562
562
. into ( ) ,
563
563
) ,
@@ -1075,7 +1075,7 @@ mod tests {
1075
1075
]
1076
1076
. map( |( k, v) | ( k. to_string( ) , v. to_string( ) ) ) ,
1077
1077
) ,
1078
- price_accounts: vec! [
1078
+ price_accounts: [
1079
1079
pyth:: PriceAccount {
1080
1080
account: "GG3FTE7xhc9Diy7dn9P6BWzoCrAEE4D3p5NBYrDAm5DD"
1081
1081
. to_string( ) ,
@@ -1091,7 +1091,7 @@ mod tests {
1091
1091
prev_slot: 791279274 ,
1092
1092
prev_price: 98272648 ,
1093
1093
prev_conf: 124986284 ,
1094
- publisher_accounts: vec! [
1094
+ publisher_accounts: [
1095
1095
PublisherAccount {
1096
1096
account: "F42dQ3SMssashRsA4SRfwJxFkGKV1bE3TcmpkagX8vvX" . to_string( ) ,
1097
1097
status: "trading" . to_string( ) ,
@@ -1106,7 +1106,7 @@ mod tests {
1106
1106
conf: 55896 ,
1107
1107
slot: 32976 ,
1108
1108
} ,
1109
- ] ,
1109
+ ] . into ( ) ,
1110
1110
} ,
1111
1111
pyth:: PriceAccount {
1112
1112
account: "fTNjSfj5uW9e4CAMHzUcm65ftRNBxCN1gG5GS1mYfid"
@@ -1123,7 +1123,7 @@ mod tests {
1123
1123
prev_slot: 893734828 ,
1124
1124
prev_price: 13947294 ,
1125
1125
prev_conf: 349274938 ,
1126
- publisher_accounts: vec! [
1126
+ publisher_accounts: [
1127
1127
PublisherAccount {
1128
1128
account: "8MMroLyuyxyeDRrzMNfpymC5RvmHtQiYooXX9bgeUJdM" . to_string( ) ,
1129
1129
status: "unknown" . to_string( ) ,
@@ -1138,7 +1138,7 @@ mod tests {
1138
1138
conf: 8962196 ,
1139
1139
slot: 301541 ,
1140
1140
} ,
1141
- ] ,
1141
+ ] . into ( ) ,
1142
1142
} ,
1143
1143
pyth:: PriceAccount {
1144
1144
account: "GKNcUmNacSJo4S2Kq3DuYRYRGw3sNUfJ4tyqd198t6vQ"
@@ -1155,15 +1155,15 @@ mod tests {
1155
1155
prev_slot: 8878456286 ,
1156
1156
prev_price: 24746384 ,
1157
1157
prev_conf: 6373957 ,
1158
- publisher_accounts: vec! [ PublisherAccount {
1158
+ publisher_accounts: [ PublisherAccount {
1159
1159
account: "33B2brfdz16kizEXeQvYzJXHiS1X95L8pfetuyntEiXg" . to_string( ) ,
1160
1160
status: "trading" . to_string( ) ,
1161
1161
price: 61478 ,
1162
1162
conf: 312545 ,
1163
1163
slot: 302156 ,
1164
- } ] ,
1164
+ } ] . into ( ) ,
1165
1165
} ,
1166
- ] ,
1166
+ ] . into ( ) ,
1167
1167
} ,
1168
1168
pyth:: ProductAccount {
1169
1169
account: "CkMrDWtmFJZcmAUC11qNaWymbXQKvnRx4cq1QudLav7t" . to_string( ) ,
@@ -1178,7 +1178,7 @@ mod tests {
1178
1178
]
1179
1179
. map( |( k, v) | ( k. to_string( ) , v. to_string( ) ) ) ,
1180
1180
) ,
1181
- price_accounts: vec! [
1181
+ price_accounts: [
1182
1182
pyth:: PriceAccount {
1183
1183
account: "GVXRSBjFk6e6J3NbVPXohDJetcTjaeeuykUpbQF8UoMU"
1184
1184
. to_string( ) ,
@@ -1194,7 +1194,7 @@ mod tests {
1194
1194
prev_slot: 172761778 ,
1195
1195
prev_price: 22691000 ,
1196
1196
prev_conf: 398674 ,
1197
- publisher_accounts: vec! [ ] ,
1197
+ publisher_accounts: [ ] . into ( ) ,
1198
1198
} ,
1199
1199
pyth:: PriceAccount {
1200
1200
account: "3VQwtcntVQN1mj1MybQw8qK7Li3KNrrgNskSQwZAPGNr"
@@ -1211,13 +1211,13 @@ mod tests {
1211
1211
prev_slot: 1727612348 ,
1212
1212
prev_price: 746383678 ,
1213
1213
prev_conf: 757368 ,
1214
- publisher_accounts: vec! [ PublisherAccount {
1214
+ publisher_accounts: [ PublisherAccount {
1215
1215
account: "C9syZ2MoGUwbPyGEgiy8MxesaEEKLdJw8gnwx2jLK1cV" . to_string( ) ,
1216
1216
status: "trading" . to_string( ) ,
1217
1217
price: 85698 ,
1218
1218
conf: 23645 ,
1219
1219
slot: 14765 ,
1220
- } ] ,
1220
+ } ] . into ( ) ,
1221
1221
} ,
1222
1222
pyth:: PriceAccount {
1223
1223
account: "2V7t5NaKY7aGkwytCWQgvUYZfEr9XMwNChhJEakTExk6"
@@ -1234,7 +1234,7 @@ mod tests {
1234
1234
prev_slot: 86484638 ,
1235
1235
prev_price: 28463947 ,
1236
1236
prev_conf: 83628234 ,
1237
- publisher_accounts: vec! [
1237
+ publisher_accounts: [
1238
1238
PublisherAccount {
1239
1239
account: "DaMuPaW5dhGfRJaX7TzLWXd8hDCMJ5WA2XibJ12hjBNQ" . to_string( ) ,
1240
1240
status: "trading" . to_string( ) ,
@@ -1249,9 +1249,9 @@ mod tests {
1249
1249
conf: 7456 ,
1250
1250
slot: 865 ,
1251
1251
} ,
1252
- ] ,
1252
+ ] . into ( ) ,
1253
1253
} ,
1254
- ] ,
1254
+ ] . into ( ) ,
1255
1255
} ,
1256
1256
] ;
1257
1257
@@ -1280,7 +1280,7 @@ mod tests {
1280
1280
// Check that the result of the conversion to the Pythd API format is what we expected
1281
1281
let expected = ProductAccount {
1282
1282
account : account. to_string ( ) ,
1283
- price_accounts : vec ! [
1283
+ price_accounts : [
1284
1284
pyth:: PriceAccount {
1285
1285
account : "GVXRSBjFk6e6J3NbVPXohDJetcTjaeeuykUpbQF8UoMU" . to_string ( ) ,
1286
1286
price_type : "price" . to_string ( ) ,
@@ -1295,7 +1295,7 @@ mod tests {
1295
1295
prev_slot : 172761778 ,
1296
1296
prev_price : 22691000 ,
1297
1297
prev_conf : 398674 ,
1298
- publisher_accounts: vec! [ ] ,
1298
+ publisher_accounts : [ ] . into ( ) ,
1299
1299
} ,
1300
1300
pyth:: PriceAccount {
1301
1301
account : "3VQwtcntVQN1mj1MybQw8qK7Li3KNrrgNskSQwZAPGNr" . to_string ( ) ,
@@ -1311,13 +1311,13 @@ mod tests {
1311
1311
prev_slot : 1727612348 ,
1312
1312
prev_price : 746383678 ,
1313
1313
prev_conf : 757368 ,
1314
- publisher_accounts: vec! [ PublisherAccount {
1314
+ publisher_accounts : [ PublisherAccount {
1315
1315
account : "C9syZ2MoGUwbPyGEgiy8MxesaEEKLdJw8gnwx2jLK1cV" . to_string ( ) ,
1316
1316
status : "trading" . to_string ( ) ,
1317
1317
price : 85698 ,
1318
1318
conf : 23645 ,
1319
1319
slot : 14765 ,
1320
- } ] ,
1320
+ } ] . into ( ) ,
1321
1321
} ,
1322
1322
pyth:: PriceAccount {
1323
1323
account : "2V7t5NaKY7aGkwytCWQgvUYZfEr9XMwNChhJEakTExk6" . to_string ( ) ,
@@ -1333,7 +1333,7 @@ mod tests {
1333
1333
prev_slot : 86484638 ,
1334
1334
prev_price : 28463947 ,
1335
1335
prev_conf : 83628234 ,
1336
- publisher_accounts: vec! [
1336
+ publisher_accounts : [
1337
1337
PublisherAccount {
1338
1338
account : "DaMuPaW5dhGfRJaX7TzLWXd8hDCMJ5WA2XibJ12hjBNQ" . to_string ( ) ,
1339
1339
status : "trading" . to_string ( ) ,
@@ -1348,9 +1348,9 @@ mod tests {
1348
1348
conf : 7456 ,
1349
1349
slot : 865 ,
1350
1350
} ,
1351
- ] ,
1351
+ ] . into ( ) ,
1352
1352
} ,
1353
- ] ,
1353
+ ] . into ( ) ,
1354
1354
attr_dict : BTreeMap :: from (
1355
1355
[
1356
1356
( "symbol" , "Crypto.LTC/USD" ) ,
0 commit comments