From e3da2e691c9b57f0696df3a7b304ce6aa592c8b9 Mon Sep 17 00:00:00 2001 From: Mikayla Date: Tue, 24 Oct 2023 06:08:37 -0700 Subject: [PATCH] continue trampoline --- crates/gpui2_macros/src/derive_into_any_element.rs | 2 +- crates/ui2/src/components/assistant_panel.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/gpui2_macros/src/derive_into_any_element.rs b/crates/gpui2_macros/src/derive_into_any_element.rs index 7f0c9ae2c0..7366a7a6d4 100644 --- a/crates/gpui2_macros/src/derive_into_any_element.rs +++ b/crates/gpui2_macros/src/derive_into_any_element.rs @@ -122,7 +122,7 @@ pub fn derive_into_any_element(input: TokenStream) -> TokenStream { #where_clause { fn into_any(self) -> gpui2::AnyElement { - #trampoline_name(self).into_any() + #trampoline_name::new(self).into_any() } } } diff --git a/crates/ui2/src/components/assistant_panel.rs b/crates/ui2/src/components/assistant_panel.rs index 50046735d4..b6d01a3bc7 100644 --- a/crates/ui2/src/components/assistant_panel.rs +++ b/crates/ui2/src/components/assistant_panel.rs @@ -92,7 +92,7 @@ mod stories { fn render(self, cx: &mut ViewContext) -> impl IntoAnyElement { Story::container(self.0) .child(Story::title_for::<_, AssistantPanel>(self.0)) - .child(Story::label(self.cx, "Default")) + .child(Story::label(cx, "Default")) .child(AssistantPanel::new("assistant-panel")) } }