mirror of
https://github.com/Noratrieb/ice-104649.git
synced 2026-01-14 20:45:01 +01:00
lol no futures
This commit is contained in:
parent
d7d4586a04
commit
fe78f016cb
1 changed files with 1 additions and 5 deletions
|
|
@ -11,7 +11,7 @@ impl<T> Project for FutResult<T> {
|
|||
pub trait Stream {
|
||||
type Item;
|
||||
|
||||
fn for_each<Fut, F>(self, f: F) -> ForEach<F>
|
||||
fn for_each<Fut, F>(self, f: F)
|
||||
where
|
||||
F: FnMut(Self::Item) -> Fut,
|
||||
Self: Sized,
|
||||
|
|
@ -48,10 +48,6 @@ where
|
|||
type Item = <F::Output as Project>::Assoc;
|
||||
}
|
||||
|
||||
pub struct ForEach<F> {
|
||||
f: F,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let bodies = map(|url| FutResult(Result::Ok(url)));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue