missing allocgate fix
This commit is contained in:
parent
0c6c4849dd
commit
26d434ec2b
|
@ -139,7 +139,7 @@ fn getPathXdg(allocator: std.mem.Allocator, arena: *std.heap.ArenaAllocator, fol
|
|||
// TODO: add caching so we only need to read once in a run
|
||||
if (env_opt == null and folder_spec.env.user_dir) block: {
|
||||
const config_dir_path = if (std.io.is_async) blk: {
|
||||
var frame = arena.allocator.create(@Frame(getPathXdg)) catch break :block;
|
||||
var frame = arena.allocator().create(@Frame(getPathXdg)) catch break :block;
|
||||
_ = @asyncCall(frame, {}, getPathXdg, .{ arena.allocator(), arena, .local_configuration });
|
||||
break :blk (await frame) catch null orelse break :block;
|
||||
} else blk: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user