continue trampoline

This commit is contained in:
Mikayla 2023-10-24 06:08:37 -07:00
parent 317acbf1d7
commit e3da2e691c
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ pub fn derive_into_any_element(input: TokenStream) -> TokenStream {
#where_clause #where_clause
{ {
fn into_any(self) -> gpui2::AnyElement<ViewState> { fn into_any(self) -> gpui2::AnyElement<ViewState> {
#trampoline_name(self).into_any() #trampoline_name::new(self).into_any()
} }
} }
} }

View file

@ -92,7 +92,7 @@ mod stories {
fn render<V>(self, cx: &mut ViewContext<V>) -> impl IntoAnyElement<V> { fn render<V>(self, cx: &mut ViewContext<V>) -> impl IntoAnyElement<V> {
Story::container(self.0) Story::container(self.0)
.child(Story::title_for::<_, AssistantPanel>(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")) .child(AssistantPanel::new("assistant-panel"))
} }
} }