authorgravatar for cursey@live.comcursey <cursey@live.com> 2021-12-17 20:49:51 -08:00
committergravatar for cursey@live.comcursey <cursey@live.com> 2021-12-17 20:49:51 -08:00
log78bcf4b33ac78a85bf3da02cf4c6da5741d1d7ec
tree4edb8d234a37c9b08240ce0393fae7b9b115dd98
parent7f0e661371d41cfdc8b1649ed00e7a750c82e57a
signaturelock-open Commit is signed but in an unrecognized format.

Fix for Zig std.mem.Allocator changes


1 files changed, 2 insertions(+), 2 deletions(-)

src/lib.zig+2-2
......@@ -120,7 +120,7 @@ pub const Member = struct {
120120};
121121
122122const Parser = struct {
123 alloc: *std.mem.Allocator,
123 alloc: std.mem.Allocator,
124124 p: std.json.StreamingParser,
125125 input: []const u8,
126126 index: usize,
......@@ -157,7 +157,7 @@ const Parser = struct {
157157 error{ JsonExpectedObjKey, JsonExpectedValueStartGotEnd };
158158};
159159
160pub fn parse(alloc: *std.mem.Allocator, input: []const u8) Parser.Error!Value {
160pub fn parse(alloc: std.mem.Allocator, input: []const u8) Parser.Error!Value {
161161 const p = &Parser{
162162 .alloc = alloc,
163163 .p = std.json.StreamingParser.init(),