mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Remove another use of index
This commit is contained in:
parent
18f523a853
commit
ae87e76b05
1 changed files with 1 additions and 3 deletions
|
@ -436,8 +436,7 @@ impl<'a> ReflectDerive<'a> {
|
|||
) -> Result<Vec<EnumVariant<'a>>, syn::Error> {
|
||||
let sifter: utility::ResultSifter<EnumVariant<'a>> = variants
|
||||
.iter()
|
||||
.enumerate()
|
||||
.map(|(index, variant)| -> Result<EnumVariant, syn::Error> {
|
||||
.map(|variant| -> Result<EnumVariant, syn::Error> {
|
||||
let fields = Self::collect_struct_fields(&variant.fields)?;
|
||||
|
||||
let fields = match variant.fields {
|
||||
|
@ -449,7 +448,6 @@ impl<'a> ReflectDerive<'a> {
|
|||
fields,
|
||||
attrs: FieldAttributes::parse_attributes(&variant.attrs)?,
|
||||
data: variant,
|
||||
index,
|
||||
#[cfg(feature = "documentation")]
|
||||
doc: crate::documentation::Documentation::from_attributes(&variant.attrs),
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue