This commit is contained in:
nora 2022-11-20 22:16:32 +01:00
parent b8279daaf1
commit 58cfda5ac1
No known key found for this signature in database

View file

@ -20,13 +20,6 @@ pub trait Stream {
}
}
pub fn map<T, F>(f: F) -> Map<F>
where
F: FnMut() -> T,
{
loop {}
}
pub struct Map<F>(F);
impl<F> Stream for Map<F>
@ -49,7 +42,7 @@ where
}
fn main() {
let bodies = map(|| Wrap(Result::Ok(())));
let bodies = Map(|| Wrap(Result::Ok(())));
bodies.for_each(|b| async {
match b {