Skip to content

Commit d343544

Browse files
committed
better names?
1 parent 7ee3205 commit d343544

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/edge_differences.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl<'ts> EdgeDifferencesIterator<'ts> {
106106
}
107107
}
108108

109-
pub struct EdgeDifferences<'ts> {
109+
pub struct CurrentTreeEdgeDifferences<'ts> {
110110
edges_left: &'ts [Position],
111111
edges_right: &'ts [Position],
112112
edges_parent: &'ts [NodeId],
@@ -147,7 +147,7 @@ impl<'ts, T: EdgeDifferenceIteration> Iterator for X<'ts, T> {
147147
}
148148
}
149149

150-
impl<'ts> EdgeDifferences<'ts> {
150+
impl<'ts> CurrentTreeEdgeDifferences<'ts> {
151151
pub fn removals(&self) -> impl Iterator<Item = EdgeRemoval> + '_ {
152152
X {
153153
edges_left: self.edges_left,
@@ -196,7 +196,7 @@ fn update_right(
196196
}
197197

198198
impl<'ts> Iterator for EdgeDifferencesIterator<'ts> {
199-
type Item = EdgeDifferences<'ts>;
199+
type Item = CurrentTreeEdgeDifferences<'ts>;
200200

201201
fn next(&mut self) -> Option<Self::Item> {
202202
if self.insertion_index < self.insertion_order.len() && self.left < self.sequence_length {
@@ -225,7 +225,7 @@ impl<'ts> Iterator for EdgeDifferencesIterator<'ts> {
225225
self.edges_right,
226226
self.removal_order,
227227
);
228-
let diffs = EdgeDifferences {
228+
let diffs = CurrentTreeEdgeDifferences {
229229
edges_left: self.edges_left,
230230
edges_right: self.edges_right,
231231
edges_parent: self.edges_parent,

0 commit comments

Comments
 (0)