From 40d58c9bc36a907815fd09e219ede467f300ae14 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Tue, 10 Oct 2023 11:26:18 -0400 Subject: [PATCH] Use `Self::State` in `children_any` and `child_any` --- crates/gpui3/src/element.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, {