authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2021-12-24 11:43:22 -08:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2021-12-24 11:43:22 -08:00
log908ecfa6d611f3ee0d9d89434e7494a653cfd5e1
tree4edb8d234a37c9b08240ce0393fae7b9b115dd98
parent7f0e661371d41cfdc8b1649ed00e7a750c82e57a
parent78bcf4b33ac78a85bf3da02cf4c6da5741d1d7ec
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #4 from cursey/allocator-changes

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(),