Remove IntoAnyElement bound from Element trait

This commit is contained in:
Nathan Sobo 2023-10-26 11:49:36 +02:00
parent db15db45ce
commit 927278e20d
48 changed files with 106 additions and 224 deletions

View file

@ -25,7 +25,7 @@ impl BufferSearch {
view(cx.entity(|cx| Self::new()), Self::render)
}
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element<Self> {
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoAnyElement<Self> {
let theme = theme(cx);
h_stack().bg(theme.toolbar).p_2().child(