Remove initialize method from Element trait
This commit is contained in:
parent
33a808a49b
commit
c6b374ebc9
5 changed files with 53 additions and 71 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue