Attempt to return impl Element from render. 3 errors.
This commit is contained in:
parent
5f2bb82ef3
commit
51d1d92d66
86 changed files with 230 additions and 443 deletions
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue