Skip to content

Commit

Permalink
Fix CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGVSV committed Oct 12, 2022
1 parent 3ebcf82 commit 0cc73be
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 @@ -361,8 +361,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
@@ -1,6 +1,7 @@
//! Demonstrates how reflection is used with generic Rust types.

use bevy::prelude::*;
use bevy::reflect::GetTypeRegistration;
use std::any::TypeId;

fn main() {
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 0cc73be

Please sign in to comment.