@@ -2665,7 +2665,7 @@ mod tests {
26652665 CollectResp {
26662666 partial_batch_selector : PartialBatchSelector :: new_time_interval ( ) ,
26672667 report_count : 23 ,
2668- encrypted_aggregate_shares : vec ! [
2668+ encrypted_aggregate_shares : Vec :: from ( [
26692669 HpkeCiphertext :: new (
26702670 HpkeConfigId :: from ( 10 ) ,
26712671 Vec :: from ( "0123" ) ,
@@ -2676,7 +2676,7 @@ mod tests {
26762676 Vec :: from ( "01234" ) ,
26772677 Vec :: from ( "567" ) ,
26782678 ) ,
2679- ] ,
2679+ ] ) ,
26802680 } ,
26812681 concat ! (
26822682 concat!(
@@ -2747,7 +2747,7 @@ mod tests {
27472747 [ 4u8 ; 32 ] ,
27482748 ) ) ,
27492749 report_count : 23 ,
2750- encrypted_aggregate_shares : vec ! [
2750+ encrypted_aggregate_shares : Vec :: from ( [
27512751 HpkeCiphertext :: new (
27522752 HpkeConfigId :: from ( 10 ) ,
27532753 Vec :: from ( "0123" ) ,
@@ -2758,7 +2758,7 @@ mod tests {
27582758 Vec :: from ( "01234" ) ,
27592759 Vec :: from ( "567" ) ,
27602760 ) ,
2761- ] ,
2761+ ] ) ,
27622762 } ,
27632763 concat ! (
27642764 concat!(
@@ -2899,12 +2899,12 @@ mod tests {
28992899 job_id : AggregationJobId ( [ u8:: MIN ; 32 ] ) ,
29002900 aggregation_parameter : Vec :: from ( "012345" ) ,
29012901 partial_batch_selector : PartialBatchSelector :: new_time_interval ( ) ,
2902- report_shares : vec ! [
2902+ report_shares : Vec :: from ( [
29032903 ReportShare {
29042904 metadata : ReportMetadata :: new (
29052905 ReportId :: from ( [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 ] ) ,
29062906 Time :: from_seconds_since_epoch ( 54321 ) ,
2907- vec! [ Extension :: new( ExtensionType :: Tbd , Vec :: from( "0123" ) ) ] ,
2907+ Vec :: from ( [ Extension :: new ( ExtensionType :: Tbd , Vec :: from ( "0123" ) ) ] ) ,
29082908 ) ,
29092909 public_share : Vec :: new ( ) ,
29102910 encrypted_input_share : HpkeCiphertext :: new (
@@ -2917,7 +2917,7 @@ mod tests {
29172917 metadata : ReportMetadata :: new (
29182918 ReportId :: from ( [ 16 , 15 , 14 , 13 , 12 , 11 , 10 , 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 ] ) ,
29192919 Time :: from_seconds_since_epoch ( 73542 ) ,
2920- vec! [ Extension :: new( ExtensionType :: Tbd , Vec :: from( "3210" ) ) ] ,
2920+ Vec :: from ( [ Extension :: new ( ExtensionType :: Tbd , Vec :: from ( "3210" ) ) ] ) ,
29212921 ) ,
29222922 public_share : Vec :: from ( "0123" ) ,
29232923 encrypted_input_share : HpkeCiphertext :: new (
@@ -2926,7 +2926,7 @@ mod tests {
29262926 Vec :: from ( "abfd" ) ,
29272927 ) ,
29282928 } ,
2929- ] ,
2929+ ] ) ,
29302930 } ,
29312931 concat ! (
29322932 "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" , // task_id
@@ -3031,12 +3031,12 @@ mod tests {
30313031 partial_batch_selector : PartialBatchSelector :: new_fixed_size ( BatchId :: from (
30323032 [ 2u8 ; 32 ] ,
30333033 ) ) ,
3034- report_shares : vec ! [
3034+ report_shares : Vec :: from ( [
30353035 ReportShare {
30363036 metadata : ReportMetadata :: new (
30373037 ReportId :: from ( [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 ] ) ,
30383038 Time :: from_seconds_since_epoch ( 54321 ) ,
3039- vec! [ Extension :: new( ExtensionType :: Tbd , Vec :: from( "0123" ) ) ] ,
3039+ Vec :: from ( [ Extension :: new ( ExtensionType :: Tbd , Vec :: from ( "0123" ) ) ] ) ,
30403040 ) ,
30413041 public_share : Vec :: new ( ) ,
30423042 encrypted_input_share : HpkeCiphertext :: new (
@@ -3049,7 +3049,7 @@ mod tests {
30493049 metadata : ReportMetadata :: new (
30503050 ReportId :: from ( [ 16 , 15 , 14 , 13 , 12 , 11 , 10 , 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 ] ) ,
30513051 Time :: from_seconds_since_epoch ( 73542 ) ,
3052- vec! [ Extension :: new( ExtensionType :: Tbd , Vec :: from( "3210" ) ) ] ,
3052+ Vec :: from ( [ Extension :: new ( ExtensionType :: Tbd , Vec :: from ( "3210" ) ) ] ) ,
30533053 ) ,
30543054 public_share : Vec :: from ( "0123" ) ,
30553055 encrypted_input_share : HpkeCiphertext :: new (
@@ -3058,7 +3058,7 @@ mod tests {
30583058 Vec :: from ( "abfd" ) ,
30593059 ) ,
30603060 } ,
3061- ] ,
3061+ ] ) ,
30623062 } ,
30633063 concat ! (
30643064 "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" , // task_id
@@ -3162,7 +3162,7 @@ mod tests {
31623162 roundtrip_encoding ( & [
31633163 (
31643164 AggregateInitializeResp {
3165- prepare_steps : vec ! [ ] ,
3165+ prepare_steps : Vec :: new ( ) ,
31663166 } ,
31673167 concat ! ( concat!(
31683168 // prepare_steps
@@ -3171,7 +3171,7 @@ mod tests {
31713171 ) ,
31723172 (
31733173 AggregateInitializeResp {
3174- prepare_steps : vec ! [
3174+ prepare_steps : Vec :: from ( [
31753175 PrepareStep {
31763176 report_id : ReportId :: from ( [
31773177 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 ,
@@ -3184,7 +3184,7 @@ mod tests {
31843184 ] ) ,
31853185 result : PrepareStepResult :: Finished ,
31863186 } ,
3187- ] ,
3187+ ] ) ,
31883188 } ,
31893189 concat ! ( concat!(
31903190 // prepare_steps
@@ -3213,7 +3213,7 @@ mod tests {
32133213 AggregateContinueReq {
32143214 task_id : TaskId :: from ( [ u8:: MIN ; 32 ] ) ,
32153215 job_id : AggregationJobId ( [ u8:: MAX ; 32 ] ) ,
3216- prepare_steps : vec ! [
3216+ prepare_steps : Vec :: from ( [
32173217 PrepareStep {
32183218 report_id : ReportId :: from ( [
32193219 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 ,
@@ -3226,7 +3226,7 @@ mod tests {
32263226 ] ) ,
32273227 result : PrepareStepResult :: Finished ,
32283228 } ,
3229- ] ,
3229+ ] ) ,
32303230 } ,
32313231 concat ! (
32323232 "0000000000000000000000000000000000000000000000000000000000000000" , // task_id
@@ -3257,7 +3257,7 @@ mod tests {
32573257 roundtrip_encoding ( & [
32583258 (
32593259 AggregateContinueResp {
3260- prepare_steps : vec ! [ ] ,
3260+ prepare_steps : Vec :: new ( ) ,
32613261 } ,
32623262 concat ! ( concat!(
32633263 // prepare_steps
@@ -3266,7 +3266,7 @@ mod tests {
32663266 ) ,
32673267 (
32683268 AggregateContinueResp {
3269- prepare_steps : vec ! [
3269+ prepare_steps : Vec :: from ( [
32703270 PrepareStep {
32713271 report_id : ReportId :: from ( [
32723272 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 ,
@@ -3279,7 +3279,7 @@ mod tests {
32793279 ] ) ,
32803280 result : PrepareStepResult :: Finished ,
32813281 } ,
3282- ] ,
3282+ ] ) ,
32833283 } ,
32843284 concat ! ( concat!(
32853285 // prepare_steps
0 commit comments