We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bd305d commit 14f5defCopy full SHA for 14f5def
crates/bevy_reflect/src/enums/enum_trait.rs
@@ -158,14 +158,14 @@ impl EnumInfo {
158
let variant_names = variants
159
.iter()
160
.map(|variant| variant.name())
161
- .collect::<Vec<_>>();
+ .collect();
162
163
Self {
164
name,
165
type_name: std::any::type_name::<TEnum>(),
166
type_id: TypeId::of::<TEnum>(),
167
variants: variants.to_vec().into_boxed_slice(),
168
- variant_names: variant_names.into_boxed_slice(),
+ variant_names,
169
variant_indices,
170
}
171
0 commit comments