File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pub trait ProducerCallback<ITEM> {
16
16
/// A producer which will produce a fixed number of items N. This is
17
17
/// not queryable through the API; the consumer is expected to track
18
18
/// it.
19
- pub trait Producer : IntoIterator + Send {
19
+ pub trait Producer : IntoIterator + Send + Sized {
20
20
/// Cost to produce `len` items, where `len` must be `N`.
21
21
fn cost ( & mut self , len : usize ) -> f64 ;
22
22
@@ -26,7 +26,7 @@ pub trait Producer: IntoIterator + Send {
26
26
}
27
27
28
28
/// A consumer which consumes items that are fed to it.
29
- pub trait Consumer < Item > : Send {
29
+ pub trait Consumer < Item > : Send + Sized {
30
30
type Folder : Folder < Item , Result =Self :: Result > ;
31
31
type Reducer : Reducer < Self :: Result > ;
32
32
type Result : Send ;
@@ -130,4 +130,3 @@ pub struct NoopReducer;
130
130
impl Reducer < ( ) > for NoopReducer {
131
131
fn reduce ( self , _left : ( ) , _right : ( ) ) { }
132
132
}
133
-
You can’t perform that action at this time.
0 commit comments