diff --git a/crates/gpui/src/elements/component.rs b/crates/gpui/src/elements/component.rs index 94b136e8d66d1e9e309437531ff8e7fc0d323ebb..9d745347d092d844811453531415a9e2e7e7fa65 100644 --- a/crates/gpui/src/elements/component.rs +++ b/crates/gpui/src/elements/component.rs @@ -42,7 +42,7 @@ impl StyleableComponent for () { pub trait Component { fn render(self, v: &mut V, cx: &mut ViewContext) -> AnyElement; - fn into_element(self) -> ComponentAdapter + fn element(self) -> ComponentAdapter where Self: Sized, {