summaryrefslogtreecommitdiffstats
path: root/futures/src/command.rs
diff options
context:
space:
mode:
authorLibravatar 无限UCW <x-wuxian@qq.com>2022-08-12 01:57:05 +0800
committerLibravatar 无限UCW <x-wuxian@qq.com>2022-08-12 01:57:05 +0800
commitf21d1209aa576a3e597c100fa56afe554dc2babd (patch)
tree3b5ebd93ceff1d6d3b7c62dc5eba44dacbf17fff /futures/src/command.rs
parente209349c508fe67d4494cd512eb25899840a13fd (diff)
downloadiced-f21d1209aa576a3e597c100fa56afe554dc2babd.tar.gz
iced-f21d1209aa576a3e597c100fa56afe554dc2babd.tar.bz2
iced-f21d1209aa576a3e597c100fa56afe554dc2babd.zip
Relax `Fn` trait bounds in `Command` & `Action`
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 05c3a1d0..0b931125 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, f: impl Fn(T) -> A) -> Command<A>
+ pub fn map<A>(self, mut f: impl FnMut(T) -> A) -> Command<A>
where
T: 'static,
{