From 47076c6b11214a218e9244471d8762310820911a Mon Sep 17 00:00:00 2001 From: Techatrix Date: Sun, 16 Jun 2024 16:53:18 +0200 Subject: [PATCH] update to 0.14.0-dev.36+82a934bb9 Where, CI? --- known-folders.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/known-folders.zig b/known-folders.zig index d6a6e17..4119086 100644 --- a/known-folders.zig +++ b/known-folders.zig @@ -172,7 +172,7 @@ fn getPathXdg(allocator: std.mem.Allocator, arena: *std.heap.ArenaAllocator, fol _ = user_dirs.readAll(&read) catch null orelse break :env_opt null; const start = folder_spec.env.name.len + "=\"$HOME".len; - var line_it = std.mem.split(u8, &read, "\n"); + var line_it = std.mem.splitScalar(u8, &read, '\n'); while (line_it.next()) |line| { if (std.mem.startsWith(u8, line, folder_spec.env.name)) { const end = line.len - 1; @@ -193,7 +193,7 @@ fn getPathXdg(allocator: std.mem.Allocator, arena: *std.heap.ArenaAllocator, fol return try std.mem.concat(allocator, u8, &[_][]const u8{ env, suffix }); } else { if (std.mem.eql(u8, folder_spec.env.name, "XDG_CONFIG_DIRS")) { - var iter = std.mem.split(u8, env, ":"); + var iter = std.mem.splitScalar(u8, env, ':'); return try allocator.dupe(u8, iter.next() orelse ""); } else { return try allocator.dupe(u8, env);