We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc8c7a3 commit 3e4b487Copy full SHA for 3e4b487
crates/bevy_macro_utils/src/lib.rs
@@ -187,7 +187,7 @@ pub fn derive_label(
187
for (i, v) in d.variants.iter().enumerate() {
188
// Variants must either be fieldless, or explicitly ignore the fields.
189
let ignore_fields = v.attrs.iter().any(|a| is_ignore(a, attr_name));
190
- if matches!(v.fields, syn::Fields::Unit) | ignore_fields {
+ if v.fields.is_empty() || ignore_fields {
191
let mut path = syn::Path::from(ident.clone());
192
path.segments.push(v.ident.clone().into());
193
0 commit comments