mod(event): do not care about enum declarations
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 56s

The union type can not be constructed with declarations anyway:
`error: reified unions must have no decls`; meaning there is no point in
even trying to do so.
This commit is contained in:
2025-11-01 21:44:53 +01:00
parent 7cd1fb139f
commit b3dc8096d7

View File

@@ -92,7 +92,7 @@ pub fn mergeTaggedUnions(comptime A: type, comptime B: type) type {
.layout = .auto,
.tag_type = Event,
.fields = fields[0..],
.decls = if (decls.len != 0) decls[0..] else &.{},
.decls = &.{},
} });
}