Skip to content

Commit

Permalink
Fix CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGVSV committed Aug 24, 2022
1 parent 304de59 commit 82108df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions crates/bevy_reflect/bevy_reflect_derive/src/derive_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,7 @@ impl<'a> EnumVariant<'a> {
/// The complete set of fields in this variant.
pub fn fields(&self) -> &[StructField<'a>] {
match &self.fields {
EnumVariantFields::Named(fields) => fields,
EnumVariantFields::Unnamed(fields) => fields,
EnumVariantFields::Unnamed(fields) | EnumVariantFields::Named(fields) => fields,
EnumVariantFields::Unit => &[],
}
}
Expand Down
3 changes: 2 additions & 1 deletion examples/reflection/generic_reflection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
use bevy::prelude::*;
use std::any::TypeId;
use bevy::reflect::GetTypeRegistration;

fn main() {
App::new()
Expand All @@ -13,7 +14,7 @@ fn main() {
}

#[derive(Reflect)]
struct MyType<T: Reflect> {
struct MyType<T: Reflect + GetTypeRegistration> {
value: T,
}

Expand Down

0 comments on commit 82108df

Please sign in to comment.