From 62339f1480fe3a293a39126f3222f9e637c6160b Mon Sep 17 00:00:00 2001 From: Gino Valente Date: Wed, 1 Jun 2022 00:07:36 -0700 Subject: [PATCH] Fix more clippy --- crates/bevy_reflect/bevy_reflect_derive/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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),