Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGVSV committed Jun 1, 2022
1 parent 73c1d21 commit a54ec99
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/bevy_reflect/bevy_reflect_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ pub fn derive_from_reflect(input: TokenStream) -> TokenStream {
};

match derive_data {
ReflectDerive::Struct(struct_data) => from_reflect::impl_struct(&struct_data),
ReflectDerive::UnitStruct(struct_data) => from_reflect::impl_struct(&struct_data),
ReflectDerive::Struct(struct_data) | ReflectDerive::UnitStruct(struct_data) => {
from_reflect::impl_struct(&struct_data)
}
ReflectDerive::TupleStruct(struct_data) => from_reflect::impl_tuple_struct(&struct_data),
ReflectDerive::Enum(meta) => from_reflect::impl_enum(&meta),
ReflectDerive::Value(meta) => from_reflect::impl_value(&meta),
Expand Down

0 comments on commit a54ec99

Please sign in to comment.