mirror of
https://github.com/Noratrieb/ice-104649.git
synced 2026-01-16 21:35:02 +01:00
simplify
This commit is contained in:
parent
9db8176c8b
commit
3c2b45e22f
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ impl<T> Project for Wrap<T> {
|
||||||
pub trait Stream {
|
pub trait Stream {
|
||||||
type Item;
|
type Item;
|
||||||
|
|
||||||
fn async_match_on_projected<Fut, F>(self, f: F)
|
fn get_projected<Fut, F>(self, f: F)
|
||||||
where
|
where
|
||||||
F: FnMut(Self::Item) -> Fut,
|
F: FnMut(Self::Item) -> Fut,
|
||||||
Self: Sized,
|
Self: Sized,
|
||||||
|
|
@ -43,7 +43,7 @@ where
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let proj = ProjectFnOutput(|| Wrap(Result::Ok(())));
|
let proj = ProjectFnOutput(|| Wrap(Result::Ok(())));
|
||||||
proj.async_match_on_projected(|b| async {
|
proj.get_projected(|b| async {
|
||||||
match b {
|
match b {
|
||||||
Ok(Ok(url)) => {}
|
Ok(Ok(url)) => {}
|
||||||
Err(e) => {}
|
Err(e) => {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue