Fix failing test

This commit is contained in:
Mikayla 2023-11-22 13:41:48 -08:00
parent 469b05684f
commit eb74ad7caa
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View file

@ -1550,7 +1550,7 @@ mod tests {
block_id: ix, block_id: ix,
editor_style: &editor::EditorStyle::default(), editor_style: &editor::EditorStyle::default(),
}) })
.element_id()? .inner_id()?
.try_into() .try_into()
.ok()?, .ok()?,

View file

@ -463,6 +463,10 @@ impl AnyElement {
pub fn into_any(self) -> AnyElement { pub fn into_any(self) -> AnyElement {
AnyElement::new(self) AnyElement::new(self)
} }
pub fn inner_id(&self) -> Option<ElementId> {
self.0.element_id()
}
} }
impl Element for AnyElement { impl Element for AnyElement {