File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,18 @@ pub struct X<'ts, T: EdgeDifferenceIteration> {
129129impl < ' ts , T : EdgeDifferenceIteration > Iterator for X < ' ts , T > {
130130 type Item = EdgeDifference < T > ;
131131 fn next ( & mut self ) -> Option < Self :: Item > {
132- todo ! ( )
132+ if self . removals . 0 < self . removals . 1 {
133+ let index = self . removals . 0 ;
134+ self . removals . 0 += 1 ;
135+ Some ( Self :: Item :: new (
136+ self . edges_left [ index] ,
137+ self . edges_right [ index] ,
138+ self . edges_parent [ index] ,
139+ self . edges_child [ index] ,
140+ ) )
141+ } else {
142+ None
143+ }
133144 }
134145}
135146
@@ -151,7 +162,7 @@ impl<'ts> EdgeDifferences<'ts> {
151162 edges_right : self . edges_right ,
152163 edges_parent : self . edges_parent ,
153164 edges_child : self . edges_child ,
154- removals : self . removals ,
165+ removals : self . insertions ,
155166 marker : std:: marker:: PhantomData :: < Insertion > { } ,
156167 }
157168 }
You can’t perform that action at this time.
0 commit comments