Attempt to return impl Element from render. 3 errors.

This commit is contained in:
Nathan Sobo 2023-12-30 08:58:07 -07:00 committed by Piotr Osiewicz
parent 5f2bb82ef3
commit 51d1d92d66
86 changed files with 230 additions and 443 deletions

View file

@ -1,4 +1,4 @@
use gpui::{div, AnyElement, Element, Render, Subscription, ViewContext};
use gpui::{div, Element, Render, Subscription, ViewContext};
use settings::SettingsStore;
use workspace::{item::ItemHandle, ui::prelude::*, StatusItemView};
@ -47,9 +47,7 @@ impl ModeIndicator {
}
impl Render for ModeIndicator {
type Element = AnyElement;
fn render(&mut self, _: &mut ViewContext<Self>) -> AnyElement {
fn render(&mut self, _: &mut ViewContext<Self>) -> impl Element {
let Some(mode) = self.mode.as_ref() else {
return div().into_any();
};