summaryrefslogtreecommitdiffstats
path: root/native/src/command/action.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/command/action.rs')
-rw-r--r--native/src/command/action.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/native/src/command/action.rs b/native/src/command/action.rs
index 77be1b59..5c7509c8 100644
--- a/native/src/command/action.rs
+++ b/native/src/command/action.rs
@@ -1,6 +1,8 @@
use crate::clipboard;
use crate::window;
+use iced_futures::MaybeSend;
+
use std::fmt;
/// An action that a [`Command`] can perform.
@@ -19,7 +21,10 @@ pub enum Action<T> {
impl<T> Action<T> {
/// Applies a transformation to the result of a [`Command`].
- pub fn map<A>(self, f: impl Fn(T) -> A + 'static + Send + Sync) -> Action<A>
+ pub fn map<A>(
+ self,
+ f: impl Fn(T) -> A + 'static + MaybeSend + Sync,
+ ) -> Action<A>
where
T: 'static,
{