Explorar o código

fix custom type

Evan Almloff %!s(int64=2) %!d(string=hai) anos
pai
achega
8adee11fe7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/native-core-macro/src/lib.rs

+ 1 - 1
packages/native-core-macro/src/lib.rs

@@ -68,7 +68,7 @@ fn impl_derive_macro(ast: &syn::DeriveInput) -> TokenStream {
         .map(|field| &field.ty);
 
     let gen = quote! {
-        impl dioxus_native_core::State for #type_name {
+        impl dioxus_native_core::State<#custom_type> for #type_name {
             fn create_passes() -> Box<[dioxus_native_core::TypeErasedPass<Self>]> {
                 Box::new([
                     #(