Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix example compile erorr

Mikayla4c3227ce2add
diff --git a/crates/gpui/src/elements/component.rs b/crates/gpui/src/elements/component.rs
index 94b136e8d66..9d745347d09 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<V: View> {
fn render(self, v: &mut V, cx: &mut ViewContext<V>) -> AnyElement<V>;
- fn into_element(self) -> ComponentAdapter<V, Self>
+ fn element(self) -> ComponentAdapter<V, Self>
where
Self: Sized,
{