diff --git a/crates/bevy_reflect/bevy_reflect_derive/src/lib.rs b/crates/bevy_reflect/bevy_reflect_derive/src/lib.rs index b9ff22da38d597..7c8c25acced0df 100644 --- a/crates/bevy_reflect/bevy_reflect_derive/src/lib.rs +++ b/crates/bevy_reflect/bevy_reflect_derive/src/lib.rs @@ -46,8 +46,9 @@ pub fn derive_reflect(input: TokenStream) -> TokenStream { }; match derive_data { - ReflectDerive::Struct(struct_data) => impls::impl_struct(&struct_data), - ReflectDerive::UnitStruct(struct_data) => impls::impl_struct(&struct_data), + ReflectDerive::Struct(struct_data) | ReflectDerive::UnitStruct(struct_data) => { + impls::impl_struct(&struct_data) + } ReflectDerive::TupleStruct(struct_data) => impls::impl_tuple_struct(&struct_data), ReflectDerive::Enum(meta) => impls::impl_enum(&meta), ReflectDerive::Value(meta) => impls::impl_value(&meta),