fix: new apis

This commit is contained in:
Nova
2024-05-28 01:24:49 -04:00
parent 89fcc55cca
commit d7fba79be9
5 changed files with 445 additions and 426 deletions

View File

@@ -211,7 +211,6 @@ pub fn panel_item_from_node(node: &Node) -> Option<Arc<dyn PanelItemTrait>> {
}
pub trait PanelItemTrait: Backend + Send + Sync + 'static {
fn uid(&self) -> &str;
fn serialize_start_data(&self, id: &str) -> Result<Message>;
}
@@ -533,10 +532,6 @@ impl<B: Backend + ?Sized> PanelItem<B> {
flex_no_args!(reset_touches_flex, reset_touches);
}
impl<B: Backend + ?Sized> PanelItemTrait for PanelItem<B> {
fn uid(&self) -> &str {
&self.uid
}
fn serialize_start_data(&self, id: &str) -> Result<Message> {
Ok(serialize((id, self.start_data()?))?.into())
}