💥 Oculta as_ref_any() y as_mut_any() en la API

This commit is contained in:
Manuel Cillero 2023-07-11 21:17:35 +02:00
parent 0880964fd1
commit 9a49186ed2
25 changed files with 41 additions and 196 deletions

View file

@ -76,14 +76,6 @@ impl ComponentTrait for MegaMenuItem {
}),
}
}
fn as_ref_any(&self) -> &dyn AnyComponent {
self
}
fn as_mut_any(&mut self) -> &mut dyn AnyComponent {
self
}
}
impl MegaMenuItem {
@ -222,14 +214,6 @@ impl ComponentTrait for MegaMenu {
fn after_prepare_component(&mut self, cx: &mut Context) {
run_actions_after_prepare_megamenu(self, cx);
}
fn as_ref_any(&self) -> &dyn AnyComponent {
self
}
fn as_mut_any(&mut self) -> &mut dyn AnyComponent {
self
}
}
impl MegaMenu {