Return impl IntoElement from Render::render trait
This commit is contained in:
@@ -47,7 +47,7 @@ impl ModeIndicator {
|
||||
}
|
||||
|
||||
impl Render for ModeIndicator {
|
||||
fn render(&mut self, _: &mut ViewContext<Self>) -> impl Element {
|
||||
fn render(&mut self, _: &mut ViewContext<Self>) -> impl IntoElement {
|
||||
let Some(mode) = self.mode.as_ref() else {
|
||||
return div().into_any();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user