Fix Send requirements in WebAssembly builds

This commit is contained in:
Héctor Ramón Jiménez 2025-08-29 09:07:19 +02:00
parent 4991a1a7f3
commit 5417b630a5
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
6 changed files with 14 additions and 20 deletions

View file

@ -15,7 +15,7 @@ use crate::core::text;
use crate::core::theme;
use crate::core::window;
use crate::core::{Element, Font, Settings};
use crate::futures::{Executor, MaybeSend, Subscription};
use crate::futures::{Executor, Subscription};
use crate::graphics::compositor;
use crate::runtime::Task;
@ -29,7 +29,7 @@ pub trait Program: Sized {
type State;
/// The message of the program.
type Message: MaybeSend + 'static;
type Message: Send + 'static;
/// The theme of the program.
type Theme: Default + theme::Base;