@@ -20,7 +20,7 @@ fn main() {
2020 let index = worker. index ( ) ;
2121 let peers = worker. peers ( ) ;
2222
23- let worker_input =
23+ let worker_input =
2424 input
2525 . chars ( )
2626 . enumerate ( )
@@ -37,7 +37,7 @@ fn main() {
3737 // { next_invalid, garbage }
3838 //
3939 // where the first bool indicates that the next character should be ignored,
40- // and the second bool indicates that we are in a garbage scope. We will
40+ // and the second bool indicates that we are in a garbage scope. We will
4141 // encode this as the values 0 .. 4, where
4242 //
4343 // 0: valid, non-garbage
@@ -48,7 +48,7 @@ fn main() {
4848 // Each character initially describes a substring of length one, but we will
4949 // build up the state transition for larger substrings, iteratively.
5050
51- let transitions =
51+ let transitions =
5252 input
5353 . map ( |( pos, character) |
5454 ( pos, match character {
@@ -95,7 +95,7 @@ fn main() {
9595}
9696
9797/// Accumulate data in `collection` into all powers-of-two intervals containing them.
98- fn pp_aggregate < G , D , F > ( collection : Collection < G , ( usize , D ) > , combine : F ) -> Collection < G , ( ( usize , usize ) , D ) >
98+ fn pp_aggregate < G , D , F > ( collection : VecCollection < G , ( usize , D ) > , combine : F ) -> VecCollection < G , ( ( usize , usize ) , D ) >
9999where
100100 G : Scope < Timestamp : Lattice > ,
101101 D : Data ,
@@ -105,7 +105,7 @@ where
105105 let unit_ranges = collection. map ( |( index, data) | ( ( index, 0 ) , data) ) ;
106106
107107 unit_ranges
108- . iterate ( |ranges|
108+ . iterate ( |ranges|
109109
110110 // Each available range, of size less than usize::max_value(), advertises itself as the range
111111 // twice as large, aligned to integer multiples of its size. Each range, which may contain at
@@ -126,26 +126,26 @@ where
126126
127127/// Produces the accumulated values at each of the `usize` locations in `aggregates` (and others).
128128fn pp_broadcast < G , D , B , F > (
129- ranges : Collection < G , ( ( usize , usize ) , D ) > ,
129+ ranges : VecCollection < G , ( ( usize , usize ) , D ) > ,
130130 seed : B ,
131131 zero : D ,
132- combine : F ) -> Collection < G , ( usize , B ) >
132+ combine : F ) -> VecCollection < G , ( usize , B ) >
133133where
134134 G : Scope < Timestamp : Lattice +Ord +:: std:: fmt:: Debug > ,
135135 D : Data ,
136136 B : Data +:: std:: hash:: Hash ,
137137 F : Fn ( & B , & D ) -> B + ' static ,
138138{
139139 // Each range proposes an empty first child, to provide for its second child if it has no sibling.
140- // This is important if we want to reconstruct
140+ // This is important if we want to reconstruct
141141 let zero_ranges =
142142 ranges
143143 . map ( move |( ( pos, log) , _) | ( ( pos, if log > 0 { log - 1 } else { 0 } ) , zero. clone ( ) ) )
144144 . antijoin ( & ranges. map ( |( ( pos, log) , _) | ( pos, log) ) ) ;
145145
146146 let aggregates = ranges. concat ( & zero_ranges) ;
147147
148- let init_state =
148+ let init_state =
149149 Some ( ( ( 0 , seed) , Default :: default ( ) , 1 ) )
150150 . to_stream ( & mut aggregates. scope ( ) )
151151 . as_collection ( ) ;
0 commit comments