浏览代码

fix custom type

Evan Almloff 2 年之前
父节点
当前提交
8adee11fe7
共有 1 个文件被更改,包括 1 次插入1 次删除
  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([
                     #(