1
1
//! Merges the contents of multiple streams.
2
2
3
3
4
- use crate :: Container ;
4
+ use crate :: { Container , Data } ;
5
5
use crate :: dataflow:: channels:: pact:: Pipeline ;
6
6
use crate :: dataflow:: { OwnedStream , StreamLike , Scope } ;
7
7
@@ -23,7 +23,7 @@ pub trait Concat<G: Scope, D: Container, S: StreamLike<G, D>> {
23
23
fn concat ( self , other : S ) -> OwnedStream < G , D > ;
24
24
}
25
25
26
- impl < G : Scope , D : Container +Clone , S : StreamLike < G , D > > Concat < G , D , S > for S {
26
+ impl < G : Scope , D : Container +Data , S : StreamLike < G , D > > Concat < G , D , S > for S {
27
27
fn concat ( self , other : S ) -> OwnedStream < G , D > {
28
28
self . scope ( ) . concatenate ( [ self , other] )
29
29
}
@@ -52,7 +52,7 @@ pub trait Concatenate<G: Scope, D: Container, S: StreamLike<G, D>> {
52
52
I : IntoIterator < Item =S > ;
53
53
}
54
54
55
- impl < G : Scope , D : Container +Clone > Concatenate < G , D , OwnedStream < G , D > > for OwnedStream < G , D > {
55
+ impl < G : Scope , D : Container +Data > Concatenate < G , D , OwnedStream < G , D > > for OwnedStream < G , D > {
56
56
fn concatenate < I > ( self , sources : I ) -> OwnedStream < G , D >
57
57
where
58
58
I : IntoIterator < Item =OwnedStream < G , D > > ,
@@ -61,7 +61,7 @@ impl<G: Scope, D: Container+Clone> Concatenate<G, D, OwnedStream<G, D>> for Owne
61
61
}
62
62
}
63
63
64
- impl < G : Scope , D : Container +Clone , S : StreamLike < G , D > > Concatenate < G , D , S > for & G {
64
+ impl < G : Scope , D : Container +Data , S : StreamLike < G , D > > Concatenate < G , D , S > for & G {
65
65
fn concatenate < I > ( self , sources : I ) -> OwnedStream < G , D >
66
66
where
67
67
I : IntoIterator < Item =S >
0 commit comments