Use FnOnce in Command::perform
... and revert `FnMut` usage.
This commit is contained in:
parent
f21d1209aa
commit
23229e00f6
6 changed files with 11 additions and 11 deletions
|
|
@ -56,7 +56,7 @@ impl<T> Command<T> {
|
|||
/// Applies a transformation to the result of a [`Command`].
|
||||
pub fn map<A>(
|
||||
self,
|
||||
f: impl FnMut(T) -> A + 'static + MaybeSend + Sync + Clone,
|
||||
f: impl Fn(T) -> A + 'static + MaybeSend + Sync + Clone,
|
||||
) -> Command<A>
|
||||
where
|
||||
T: 'static,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue