diff --git a/src/main.rs b/src/main.rs index 52a6dcd..e40e5a3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,7 @@ impl Project for Wrap { pub trait Stream { type Item; - fn async_match_on_projected(self, f: F) + fn get_projected(self, f: F) where F: FnMut(Self::Item) -> Fut, Self: Sized, @@ -43,7 +43,7 @@ where fn main() { let proj = ProjectFnOutput(|| Wrap(Result::Ok(()))); - proj.async_match_on_projected(|b| async { + proj.get_projected(|b| async { match b { Ok(Ok(url)) => {} Err(e) => {}