summaryrefslogtreecommitdiffstats
path: root/runtime/src/task.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-06-14 01:52:30 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-06-14 01:52:30 +0200
commitb328da2c71e998e539bdc65815061e88dd1e7081 (patch)
tree0dbd05ccffd9a771e46e653ec4c364bf1e65cc8c /runtime/src/task.rs
parenta25b1af45690bdd8e1cbb20ee3a5b1c4342de455 (diff)
downloadiced-b328da2c71e998e539bdc65815061e88dd1e7081.tar.gz
iced-b328da2c71e998e539bdc65815061e88dd1e7081.tar.bz2
iced-b328da2c71e998e539bdc65815061e88dd1e7081.zip
Fix `Send` requirements for Wasm targets
Diffstat (limited to 'runtime/src/task.rs')
-rw-r--r--runtime/src/task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/src/task.rs b/runtime/src/task.rs
index ac28a4e7..f3ddbca1 100644
--- a/runtime/src/task.rs
+++ b/runtime/src/task.rs
@@ -52,7 +52,7 @@ impl<T> Task<T> {
/// its output.
pub fn widget(operation: impl widget::Operation<T> + 'static) -> Task<T>
where
- T: MaybeSend + 'static,
+ T: Send + 'static,
{
Self::channel(move |sender| {
let operation =