Remove unnecessary mut self in Command::map

This commit is contained in:
Héctor Ramón Jiménez 2021-09-02 13:47:34 +07:00
parent f0686eae0e
commit 6887afdb2c
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -33,7 +33,7 @@ impl<T> Command<T> {
/// Applies a transformation to the result of a [`Command`].
#[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
T: 'static,
{