diff options
| author | HampusM <hampus@hampusmat.com> | 2026-06-12 20:41:38 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-06-12 20:50:28 +0200 |
| commit | 52e42bfdb3d56644da03e60969b1a2bedac8efc2 (patch) | |
| tree | c0f4e4d7994a5f44fe28e7d603796b7b28142dad /engine-macros/src/reflection/struct_impl.rs | |
| parent | bf82dbc8c377453ccb97c7d66f1ef4b8f8ebd6b0 (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.rs | 1 |
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(), }, ) }); |
