This commit is contained in:
Antonio Scandurra 2023-10-26 16:40:44 +02:00
parent 98d03f6e7a
commit 637cff3ebd
22 changed files with 206 additions and 267 deletions

View file

@ -152,8 +152,8 @@ pub struct Themed<E> {
impl<V, E> Component<V> for Themed<E>
where
V: 'static,
E: 'static + Element<V> + Send + Sync,
E::ElementState: Send + Sync,
E: 'static + Element<V> + Send,
E::ElementState: Send,
{
fn render(self) -> AnyElement<V> {
AnyElement::new(self)
@ -163,10 +163,10 @@ where
#[derive(Default)]
struct ThemeStack(Vec<Theme>);
impl<V, E: 'static + Element<V> + Send + Sync> Element<V> for Themed<E>
impl<V, E: 'static + Element<V> + Send> Element<V> for Themed<E>
where
V: 'static,
E::ElementState: Send + Sync,
E::ElementState: Send,
{
type ElementState = E::ElementState;