summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-08-17 16:09:56 +0200
committerLibravatar GitHub <noreply@github.com>2022-08-17 16:09:56 +0200
commitf728d6c0597a186fe254a976811e89ad6107bbcc (patch)
tree733d047a50e5003f9416a8fba7c027f732ee60b4 /native
parentb0705d2f4c06c13bcc4397ae1d4f29264c3e08c2 (diff)
parent23229e00f608585bf2d623709a4240296721777d (diff)
downloadiced-f728d6c0597a186fe254a976811e89ad6107bbcc.tar.gz
iced-f728d6c0597a186fe254a976811e89ad6107bbcc.tar.bz2
iced-f728d6c0597a186fe254a976811e89ad6107bbcc.zip
Merge pull request #1409 from wuxianucw/master
Relax `Fn` trait bounds in `Command` & `Action`
Diffstat (limited to 'native')
-rw-r--r--native/src/command.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/command.rs b/native/src/command.rs
index b0b12805..89ee7375 100644
--- a/native/src/command.rs
+++ b/native/src/command.rs
@@ -36,7 +36,7 @@ impl<T> Command<T> {
/// Creates a [`Command`] that performs the action of the given future.
pub fn perform<A>(
future: impl Future<Output = T> + 'static + MaybeSend,
- f: impl Fn(T) -> A + 'static + MaybeSend,
+ f: impl FnOnce(T) -> A + 'static + MaybeSend,
) -> Command<A> {
use iced_futures::futures::FutureExt;