Skip to content

Commit b4bce96

Browse files
authored
order: add missing Refines implementation for tuples (#527)
Signed-off-by: Petros Angelatos <[email protected]>
1 parent 93025bb commit b4bce96

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

timely/src/order.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,19 @@ mod tuple {
182182
}
183183
}
184184

185+
use crate::progress::timestamp::Refines;
186+
impl<TOuter: Timestamp, TInner: Timestamp> Refines<TOuter> for (TOuter, TInner) {
187+
fn to_inner(other: TOuter) -> Self {
188+
(other, TInner::minimum())
189+
}
190+
fn to_outer(self: (TOuter, TInner)) -> TOuter {
191+
self.0
192+
}
193+
fn summarize(path: <Self as Timestamp>::Summary) -> <TOuter as Timestamp>::Summary {
194+
path.0
195+
}
196+
}
197+
185198
use super::Empty;
186199
impl<T1: Empty, T2: Empty> Empty for (T1, T2) { }
187200
}

0 commit comments

Comments
 (0)