diff --git a/src/lib.zig b/src/lib.zig index 8368ae6d760ea15b9aef18654c9331d773f926e9..2a0e6075e96c76c71f1db07855cefc43cb40f0c2 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -120,7 +120,7 @@ pub const Member = struct { }; const Parser = struct { - alloc: *std.mem.Allocator, + alloc: std.mem.Allocator, p: std.json.StreamingParser, input: []const u8, index: usize, @@ -157,7 +157,7 @@ const Parser = struct { error{ JsonExpectedObjKey, JsonExpectedValueStartGotEnd }; }; -pub fn parse(alloc: *std.mem.Allocator, input: []const u8) Parser.Error!Value { +pub fn parse(alloc: std.mem.Allocator, input: []const u8) Parser.Error!Value { const p = &Parser{ .alloc = alloc, .p = std.json.StreamingParser.init(),