Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use `Self::State` in `children_any` and `child_any`
Marshall Bowers40d58c9bc36a
diff --git a/crates/gpui3/src/element.rs b/crates/gpui3/src/element.rsindex 6a9425fd01d..3a60a9fa6e3 100644--- a/crates/gpui3/src/element.rs+++ b/crates/gpui3/src/element.rs@@ -50,7 +50,7 @@ pub trait ParentElement {// We'll (hopefully) be moving away from this in the future.fn children_any<I>(mut self, children: I) -> Selfwhere- I: IntoIterator<Item = AnyElement<S>>,+ I: IntoIterator<Item = AnyElement<Self::State>>,Self: Sized,{self.children_mut().extend(children.into_iter());@@ -61,7 +61,7 @@ pub trait ParentElement {// of building UI on top of the current version of gpui2.//// We'll (hopefully) be moving away from this in the future.- fn child_any(mut self, children: AnyElement<S>) -> Self+ fn child_any(mut self, children: AnyElement<Self::State>) -> SelfwhereSelf: Sized,{