Consume Recipe when building a Stream
This commit is contained in:
parent
69ed631d44
commit
c688452d7b
4 changed files with 5 additions and 4 deletions
|
|
@ -75,7 +75,7 @@ pub trait Recipe<Hasher: std::hash::Hasher, Input> {
|
|||
fn hash(&self, state: &mut Hasher);
|
||||
|
||||
fn stream(
|
||||
&self,
|
||||
self: Box<Self>,
|
||||
input: Input,
|
||||
) -> futures::stream::BoxStream<'static, Self::Output>;
|
||||
}
|
||||
|
|
@ -110,7 +110,7 @@ where
|
|||
}
|
||||
|
||||
fn stream(
|
||||
&self,
|
||||
self: Box<Self>,
|
||||
input: I,
|
||||
) -> futures::stream::BoxStream<'static, Self::Output> {
|
||||
use futures::StreamExt;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue