Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Decoding an optional is about 18% cheaper, by letting each type's own unpacker recognise a nil header instead of testing for one beforehand

### Removed
- `omit_nulls` and `omit_defaults` on `UnionAsMapOptions`, which were never read; a union-as-map always writes exactly one entry, so there is nothing to omit

### Fixed
- Decoding an enum whose tag names no field returns `error.InvalidEnumTag` instead of being illegal behavior; non-exhaustive enums still accept unknown tags

Expand Down
2 changes: 0 additions & 2 deletions src/union.zig
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ pub const UnionAsMapOptions = struct {
field_name_prefix: u8,
field_index,
},
omit_nulls: bool = true,
omit_defaults: bool = false,
};

pub const UnionAsTaggedOptions = struct {
Expand Down
Loading