use FnMut for ready_try_for_each extension
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
8d251003a2
commit
768e81741c
1 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ where
|
|||
self, f: F,
|
||||
) -> TryForEach<Self, Ready<Result<(), E>>, impl FnMut(S::Ok) -> Ready<Result<(), E>>>
|
||||
where
|
||||
F: Fn(S::Ok) -> Result<(), E>;
|
||||
F: FnMut(S::Ok) -> Result<(), E>;
|
||||
}
|
||||
|
||||
impl<T, E, S> TryReadyExt<T, E, S> for S
|
||||
|
@ -42,10 +42,10 @@ where
|
|||
|
||||
#[inline]
|
||||
fn ready_try_for_each<F>(
|
||||
self, f: F,
|
||||
self, mut f: F,
|
||||
) -> TryForEach<Self, Ready<Result<(), E>>, impl FnMut(S::Ok) -> Ready<Result<(), E>>>
|
||||
where
|
||||
F: Fn(S::Ok) -> Result<(), E>,
|
||||
F: FnMut(S::Ok) -> Result<(), E>,
|
||||
{
|
||||
self.try_for_each(move |t| ready(f(t)))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue