summaryrefslogtreecommitdiff
path: root/engine-macros/src/reflection/struct_impl.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-06-12 20:41:38 +0200
committerHampusM <hampus@hampusmat.com>2026-06-12 20:50:28 +0200
commit52e42bfdb3d56644da03e60969b1a2bedac8efc2 (patch)
treec0f4e4d7994a5f44fe28e7d603796b7b28142dad /engine-macros/src/reflection/struct_impl.rs
parentbf82dbc8c377453ccb97c7d66f1ef4b8f8ebd6b0 (diff)
fix(engine): no field type refs for generic types deriving Reflection
Diffstat (limited to 'engine-macros/src/reflection/struct_impl.rs')
-rw-r--r--engine-macros/src/reflection/struct_impl.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine-macros/src/reflection/struct_impl.rs b/engine-macros/src/reflection/struct_impl.rs
index 92cf00b..2a271e0 100644
--- a/engine-macros/src/reflection/struct_impl.rs
+++ b/engine-macros/src/reflection/struct_impl.rs
@@ -29,6 +29,7 @@ pub fn generate(input: syn::ItemStruct) -> proc_macro2::TokenStream
quote! { std::mem::offset_of!(Self, #field_index) }
}
},
+ type_reflection_optional: input.generics.params.is_empty(),
},
)
});