lol no futures

This commit is contained in:
nora 2022-11-20 22:13:00 +01:00
parent d7d4586a04
commit fe78f016cb
No known key found for this signature in database

View file

@ -11,7 +11,7 @@ impl<T> Project for FutResult<T> {
pub trait Stream { pub trait Stream {
type Item; type Item;
fn for_each<Fut, F>(self, f: F) -> ForEach<F> fn for_each<Fut, F>(self, f: F)
where where
F: FnMut(Self::Item) -> Fut, F: FnMut(Self::Item) -> Fut,
Self: Sized, Self: Sized,
@ -48,10 +48,6 @@ where
type Item = <F::Output as Project>::Assoc; type Item = <F::Output as Project>::Assoc;
} }
pub struct ForEach<F> {
f: F,
}
fn main() { fn main() {
let bodies = map(|url| FutResult(Result::Ok(url))); let bodies = map(|url| FutResult(Result::Ok(url)));