Remove initialize method from Element trait

This commit is contained in:
Nathan Sobo 2023-11-15 14:11:19 -07:00
parent 33a808a49b
commit c6b374ebc9
5 changed files with 53 additions and 71 deletions

View file

@ -225,10 +225,10 @@ impl<ParentViewState: 'static> Element<ParentViewState> for AnyView {
fn layout(
&mut self,
_view_state: &mut ParentViewState,
rendered_element: Option<Self::ElementState>,
_element_state: Option<Self::ElementState>,
cx: &mut ViewContext<ParentViewState>,
) -> (LayoutId, Self::ElementState) {
(self.layout)(self, rendered_element, cx)
(self.layout)(self, cx)
}
fn paint(