Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add missing bounds to `Themed`
Marshall Bowers8117e7933c9a
diff --git a/crates/ui2/src/theme.rs b/crates/ui2/src/theme.rsindex bf354e7c15e..a95ce77cf6f 100644--- a/crates/ui2/src/theme.rs+++ b/crates/ui2/src/theme.rs@@ -150,7 +150,8 @@ pub struct Themed<E> {impl<E> IntoAnyElement<E::ViewState> for Themed<E>where- E: Element,+ E: 'static + Element + Send + Sync,+ E::ElementState: Send + Sync,{fn into_any(self) -> AnyElement<E::ViewState> {AnyElement::new(self)@@ -160,7 +161,10 @@ where#[derive(Default)]struct ThemeStack(Vec<Theme>);-impl<E: Element> Element for Themed<E> {+impl<E: 'static + Element + Send + Sync> Element for Themed<E>+where+ E::ElementState: Send + Sync,+{type ViewState = E::ViewState;type ElementState = E::ElementState;