diff --git a/crates/gpui3/src/element.rs b/crates/gpui3/src/element.rs index 6a9425fd01d236c653e20c5dbdc02ed879cb2c1a..3a60a9fa6e33be6837cf63bc7db1a61d04644bb1 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(mut self, children: I) -> Self where - I: IntoIterator>, + I: IntoIterator>, 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) -> Self + fn child_any(mut self, children: AnyElement) -> Self where Self: Sized, {