diff options
author | 2022-01-28 21:45:30 +0700 | |
---|---|---|
committer | 2022-01-28 21:51:13 +0700 | |
commit | 90afd1db8df17a7afa06b521ccd52455eced9277 (patch) | |
tree | 6d72f34e4e2953d8d02e18b209b8246e9c32e262 /native/src/clipboard.rs | |
parent | e730d97f61bc2edc77d2f061b6a763c4d0a948df (diff) | |
download | iced-90afd1db8df17a7afa06b521ccd52455eced9277.tar.gz iced-90afd1db8df17a7afa06b521ccd52455eced9277.tar.bz2 iced-90afd1db8df17a7afa06b521ccd52455eced9277.zip |
Use `MaybeSend` in `perform` and `map` for `Command`
Diffstat (limited to '')
-rw-r--r-- | native/src/clipboard.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/native/src/clipboard.rs b/native/src/clipboard.rs index 60703c31..c9105bc0 100644 --- a/native/src/clipboard.rs +++ b/native/src/clipboard.rs @@ -1,4 +1,6 @@ //! Access the clipboard. +use iced_futures::MaybeSend; + use std::fmt; /// A buffer for short-term storage and transfer within and between @@ -36,7 +38,10 @@ pub enum Action<T> { impl<T> Action<T> { /// Maps the output of a clipboard [`Action`] using the provided closure. - 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, { |