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
2 changes: 1 addition & 1 deletion build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.{
.name = .msgpack,
.version = "0.6.0",
.minimum_zig_version = "0.15.1",
.minimum_zig_version = "0.16.0",
.dependencies = .{},
.fingerprint = 0x6733a7563cbdeb64,
.paths = .{
Expand Down
2 changes: 1 addition & 1 deletion src/struct.zig
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fn isStructFieldUsed(field: std.builtin.Type.StructField, value: anytype, opts:
return true;
}

fn countUsedStructFields(fields: []const std.builtin.Type.StructField, value: anytype, opts: StructAsMapOptions) u16 {
fn countUsedStructFields(comptime fields: []const std.builtin.Type.StructField, value: anytype, opts: StructAsMapOptions) u16 {
var used_field_count: u16 = 0;
inline for (fields) |field| {
if (isStructFieldUsed(field, value, opts)) {
Expand Down
2 changes: 1 addition & 1 deletion src/union.zig
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ pub fn unpackUnionAsTagged(reader: *std.Io.Reader, allocator: std.mem.Allocator,
const field_name = try unpackStringInto(reader, &tag_value_buffer);
union_field_name = field_name;
},
.field_name_prefix => |_| {
.field_name_prefix => {
const field_name = try unpackStringInto(reader, &tag_value_buffer);
union_field_name = field_name;
},
Expand Down
Loading