Fix compile errors
This commit is contained in:
parent
64ad8943ba
commit
5e50430299
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ pub trait FeatureFlagViewExt<V: 'static> {
|
|||
F: Fn(bool, &mut V, &mut ViewContext<V>) + Send + Sync + 'static;
|
||||
}
|
||||
|
||||
impl<V> FeatureFlagViewExt<V> for ViewContext<'_, '_, V>
|
||||
impl<V> FeatureFlagViewExt<V> for ViewContext<'_, V>
|
||||
where
|
||||
V: 'static + Send + Sync,
|
||||
{
|
||||
|
|
|
@ -30,7 +30,7 @@ pub fn derive_component(input: TokenStream) -> TokenStream {
|
|||
let expanded = quote! {
|
||||
impl #impl_generics gpui2::Component<#view_type> for #name #ty_generics #where_clause {
|
||||
fn render(self) -> gpui2::AnyElement<#view_type> {
|
||||
(move |view_state: &mut #view_type, cx: &mut gpui2::ViewContext<'_, '_, #view_type>| self.render(view_state, cx))
|
||||
(move |view_state: &mut #view_type, cx: &mut gpui2::ViewContext<'_, #view_type>| self.render(view_state, cx))
|
||||
.render()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue