diff --git a/crates/gpui/src/elements/component.rs b/crates/gpui/src/elements/component.rs index 94b136e8d6..9d745347d0 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, {