From 78bcf4b33ac78a85bf3da02cf4c6da5741d1d7ec Mon Sep 17 00:00:00 2001 From: cursey Date: Fri, 17 Dec 2021 20:49:51 -0800 Subject: [PATCH] Fix for Zig std.mem.Allocator changes --- src/lib.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(), -- 2.54.0