Skip to content

Commit cc9b1a8

Browse files
authored
Container-aware Collection::leave_region (#571)
The `leave` implementation for streams is defined for all containers, so do the same for `Collection`. Signed-off-by: Moritz Hoffmann <[email protected]>
1 parent 074bea2 commit cc9b1a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/collection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,13 +566,13 @@ where
566566
}
567567

568568
/// Methods requiring a region as the scope.
569-
impl<'a, G: Scope, D: Clone+'static, R: Clone+'static> Collection<Child<'a, G, G::Timestamp>, D, R>
569+
impl<G: Scope, D, R, C: Container+Data> Collection<Child<'_, G, G::Timestamp>, D, R, C>
570570
{
571571
/// Returns the value of a Collection from a nested region to its containing scope.
572572
///
573573
/// This method is a specialization of `leave` to the case that of a nested region.
574574
/// It removes the need for an operator that adjusts the timestamp.
575-
pub fn leave_region(&self) -> Collection<G, D, R> {
575+
pub fn leave_region(&self) -> Collection<G, D, R, C> {
576576
self.inner
577577
.leave()
578578
.as_collection()

0 commit comments

Comments
 (0)