Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix failing test
Mikaylaeb74ad7caaab
diff --git a/crates/diagnostics2/src/diagnostics.rs b/crates/diagnostics2/src/diagnostics.rsindex 7ff8cd84dbf..01e87621276 100644--- a/crates/diagnostics2/src/diagnostics.rs+++ b/crates/diagnostics2/src/diagnostics.rs@@ -1550,7 +1550,7 @@ mod tests {block_id: ix,editor_style: &editor::EditorStyle::default(),})- .element_id()?+ .inner_id()?.try_into().ok()?,diff --git a/crates/gpui2/src/element.rs b/crates/gpui2/src/element.rsindex 1045e6218c5..912329c3cb1 100644--- a/crates/gpui2/src/element.rs+++ b/crates/gpui2/src/element.rs@@ -463,6 +463,10 @@ impl AnyElement {pub fn into_any(self) -> AnyElement {AnyElement::new(self)}++ pub fn inner_id(&self) -> Option<ElementId> {+ self.0.element_id()+ }}impl Element for AnyElement {