@@ -51,7 +51,7 @@ pub trait Enter<G: Scope, T: Timestamp+Refines<G::Timestamp>, C: Container> {
51
51
/// });
52
52
/// });
53
53
/// ```
54
- fn enter < ' a > ( & self , _: & Child < ' a , G , T > ) -> StreamCore < Child < ' a , G , T > , C > ;
54
+ fn enter < ' a > ( self , _: & Child < ' a , G , T > ) -> StreamCore < Child < ' a , G , T > , C > ;
55
55
}
56
56
57
57
use crate :: dataflow:: scopes:: child:: Iterative ;
@@ -72,18 +72,18 @@ pub trait EnterAt<G: Scope, T: Timestamp, D: Data> {
72
72
/// });
73
73
/// });
74
74
/// ```
75
- fn enter_at < ' a , F : FnMut ( & D ) ->T +' static > ( & self , scope : & Iterative < ' a , G , T > , initial : F ) -> Stream < Iterative < ' a , G , T > , D > ;
75
+ fn enter_at < ' a , F : FnMut ( & D ) ->T +' static > ( self , scope : & Iterative < ' a , G , T > , initial : F ) -> Stream < Iterative < ' a , G , T > , D > ;
76
76
}
77
77
78
78
impl < G : Scope , T : Timestamp , D : Data , E : Enter < G , Product < <G as ScopeParent >:: Timestamp , T > , Vec < D > > > EnterAt < G , T , D > for E {
79
- fn enter_at < ' a , F : FnMut ( & D ) ->T +' static > ( & self , scope : & Iterative < ' a , G , T > , mut initial : F ) ->
79
+ fn enter_at < ' a , F : FnMut ( & D ) ->T +' static > ( self , scope : & Iterative < ' a , G , T > , mut initial : F ) ->
80
80
Stream < Iterative < ' a , G , T > , D > {
81
81
self . enter ( scope) . delay ( move |datum, time| Product :: new ( time. clone ( ) . to_outer ( ) , initial ( datum) ) )
82
82
}
83
83
}
84
84
85
85
impl < G : Scope , T : Timestamp +Refines < G :: Timestamp > , C : Data +Container > Enter < G , T , C > for StreamCore < G , C > {
86
- fn enter < ' a > ( & self , scope : & Child < ' a , G , T > ) -> StreamCore < Child < ' a , G , T > , C > {
86
+ fn enter < ' a > ( self , scope : & Child < ' a , G , T > ) -> StreamCore < Child < ' a , G , T > , C > {
87
87
88
88
use crate :: scheduling:: Scheduler ;
89
89
@@ -120,11 +120,11 @@ pub trait Leave<G: Scope, D: Container> {
120
120
/// });
121
121
/// });
122
122
/// ```
123
- fn leave ( & self ) -> StreamCore < G , D > ;
123
+ fn leave ( self ) -> StreamCore < G , D > ;
124
124
}
125
125
126
126
impl < ' a , G : Scope , D : Clone +Container , T : Timestamp +Refines < G :: Timestamp > > Leave < G , D > for StreamCore < Child < ' a , G , T > , D > {
127
- fn leave ( & self ) -> StreamCore < G , D > {
127
+ fn leave ( self ) -> StreamCore < G , D > {
128
128
129
129
let scope = self . scope ( ) ;
130
130
0 commit comments