diff --git a/src/main.rs b/src/main.rs index 1e371d7..513e6d3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,13 +20,6 @@ pub trait Stream { } } -pub fn map(f: F) -> Map -where - F: FnMut() -> T, -{ - loop {} -} - pub struct Map(F); impl Stream for Map @@ -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 {