authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-05-21 12:58:21 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-05-21 12:58:21 -07:00
log25d3f448d09681b5bdb6c309d6559008eabf972f
treebe9a3460931d48e7da426ee9c5611c1dfe814adb
parentfde1cd00b8f46e629231eea37a78fd05a540bade

update to Zig 0.14


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

cookies.zig+2-2
......@@ -6,7 +6,7 @@ pub const Jar = std.StringHashMap(string);
66pub fn parse(alloc: std.mem.Allocator, cookie_str: ?string) !Jar {
77 var map = Jar.init(alloc);
88 const h = cookie_str orelse return map;
9 var iter = std.mem.split(u8, h, "; ");
9 var iter = std.mem.splitSequence(u8, h, "; ");
1010 while (iter.next()) |item| {
1111 const i = std.mem.indexOfScalar(u8, item, '=');
1212 if (i == null) continue;
......@@ -21,7 +21,7 @@ pub fn parse(alloc: std.mem.Allocator, cookie_str: ?string) !Jar {
2121
2222pub fn get(cookie_str: ?string, name: string) ?string {
2323 const h = cookie_str orelse return null;
24 var iter = std.mem.split(u8, h, "; ");
24 var iter = std.mem.splitSequence(u8, h, "; ");
2525 while (iter.next()) |item| {
2626 const i = std.mem.indexOfScalar(u8, item, '=');
2727 if (i == null) continue;