lol no futures

This commit is contained in:
nora 2022-11-20 22:11:58 +01:00
parent aa8980081d
commit 5fecc8c3f4
No known key found for this signature in database

View file

@ -11,7 +11,7 @@ impl<T> Project for FutResult<T> {
pub trait Stream {
type Item;
fn for_each<Fut, F>(self, f: F) -> ForEach<Self, F>
fn for_each<Fut, F>(self, f: F) -> ForEach<F>
where
F: FnMut(Self::Item) -> Fut,
Self: Sized,
@ -48,8 +48,7 @@ where
type Item = <F::Output as Project>::Assoc;
}
pub struct ForEach<St, F> {
stream: St,
pub struct ForEach<F> {
f: F,
}