Fix a few identity mixups in GPUI
co-authored-by: nathan <nathan@zed.dev>
This commit is contained in:
parent
e557eb4afe
commit
469b05684f
7 changed files with 84 additions and 44 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue