summaryrefslogtreecommitdiffstats
path: root/futures
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--futures/src/command.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/futures/src/command.rs b/futures/src/command.rs
index 0b931125..05c3a1d0 100644
--- a/futures/src/command.rs
+++ b/futures/src/command.rs
@@ -41,7 +41,7 @@ impl<T> Command<T> {
}
/// Applies a transformation to the result of a [`Command`].
- pub fn map<A>(self, mut f: impl FnMut(T) -> A) -> Command<A>
+ pub fn map<A>(self, f: impl Fn(T) -> A) -> Command<A>
where
T: 'static,
{