Remove unnecessary mut self in Command::map
This commit is contained in:
parent
f0686eae0e
commit
6887afdb2c
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ impl<T> Command<T> {
|
||||||
|
|
||||||
/// Applies a transformation to the result of a [`Command`].
|
/// Applies a transformation to the result of a [`Command`].
|
||||||
#[cfg(target_arch = "wasm32")]
|
#[cfg(target_arch = "wasm32")]
|
||||||
pub fn map<A>(mut self, f: impl Fn(T) -> A + 'static + Clone) -> Command<A>
|
pub fn map<A>(self, f: impl Fn(T) -> A + 'static + Clone) -> Command<A>
|
||||||
where
|
where
|
||||||
T: 'static,
|
T: 'static,
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue