Relax Fn trait bounds in Command & Action
This commit is contained in:
parent
e209349c50
commit
f21d1209aa
6 changed files with 12 additions and 12 deletions
|
|
@ -41,7 +41,7 @@ impl<T> Command<T> {
|
|||
}
|
||||
|
||||
/// Applies a transformation to the result of a [`Command`].
|
||||
pub fn map<A>(self, f: impl Fn(T) -> A) -> Command<A>
|
||||
pub fn map<A>(self, mut f: impl FnMut(T) -> A) -> Command<A>
|
||||
where
|
||||
T: 'static,
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue