From 4c3227ce2addd5bc490b7db35f29297f81a36948 Mon Sep 17 00:00:00 2001 From: Mikayla Date: Fri, 18 Aug 2023 15:17:24 -0700 Subject: [PATCH] Fix example compile erorr --- crates/gpui/src/elements/component.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, {