aboutsummaryrefslogtreecommitdiff
path: root/src/api/schema.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/schema.zig')
-rw-r--r--src/api/schema.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/schema.zig b/src/api/schema.zig
index 45589a431..2153ce0f3 100644
--- a/src/api/schema.zig
+++ b/src/api/schema.zig
@@ -6,9 +6,9 @@ pub const Reader = struct {
buf: []u8,
remain: []u8,
- allocator: *std.mem.Allocator,
+ allocator: std.mem.Allocator,
- pub fn init(buf: []u8, allocator: *std.mem.Allocator) Reader {
+ pub fn init(buf: []u8, allocator: std.mem.Allocator) Reader {
return Reader{
.buf = buf,
.remain = buf,
@@ -161,7 +161,7 @@ pub const Reader = struct {
else => {},
}
},
- .Enum => |type_info| {
+ .Enum => {
return try this.readEnum(T);
},
else => {},