Fix a few identity mixups in GPUI

co-authored-by: nathan <nathan@zed.dev>
This commit is contained in:
Mikayla 2023-11-21 17:11:38 -08:00
parent e557eb4afe
commit 469b05684f
No known key found for this signature in database
7 changed files with 84 additions and 44 deletions

View file

@ -432,10 +432,6 @@ impl AnyElement {
AnyElement(Box::new(Some(DrawableElement::new(element))) as Box<dyn ElementObject>)
}
pub fn element_id(&self) -> Option<ElementId> {
self.0.element_id()
}
pub fn layout(&mut self, cx: &mut WindowContext) -> LayoutId {
self.0.layout(cx)
}
@ -490,7 +486,7 @@ impl RenderOnce for AnyElement {
type Element = Self;
fn element_id(&self) -> Option<ElementId> {
AnyElement::element_id(self)
None
}
fn render_once(self) -> Self::Element {