mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 10:42:08 +00:00
Add missing bounds to Themed
This commit is contained in:
parent
2285a35016
commit
8117e7933c
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue