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/enum_impl.rs | |
| parent | bf82dbc8c377453ccb97c7d66f1ef4b8f8ebd6b0 (diff) | |
fix(engine): no field type refs for generic types deriving Reflection
Diffstat (limited to 'engine-macros/src/reflection/enum_impl.rs')
| -rw-r--r-- | engine-macros/src/reflection/enum_impl.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engine-macros/src/reflection/enum_impl.rs b/engine-macros/src/reflection/enum_impl.rs index b2e01e8..1760f40 100644 --- a/engine-macros/src/reflection/enum_impl.rs +++ b/engine-macros/src/reflection/enum_impl.rs @@ -288,6 +288,10 @@ fn generate_variants<'a>( unreachable!(); } }, + type_reflection_optional: input + .generics + .params + .is_empty(), }, ) }, @@ -333,6 +337,10 @@ fn generate_variants<'a>( } } }, + type_reflection_optional: input + .generics + .params + .is_empty(), }, ) }, |
