Fixed (hopefully) the last lingering issues.

This commit is contained in:
Caleb Gardner
2026-06-17 23:46:11 -05:00
parent f47ef9ee46
commit 69a4599f78
2 changed files with 13 additions and 9 deletions
+6 -2
View File
@@ -74,7 +74,11 @@ pub fn extract(
),
}
try loop.await(io);
// try loop.await(io);
loop.await(io) catch |err| {
std.debug.print("err: {}\n", .{err});
return err;
};
}
fn dirOrder(_: void, a: PathReturn, b: PathReturn) std.math.Order {
@@ -139,7 +143,7 @@ fn finishLoop(alloc: std.mem.Allocator, io: Io, sel: *Io.Select(ReturnUnion), id
}
while (dirs.popMax()) |path_ret| {
if (path_ret.hdr.num != start_num)
defer if (path_ret.hdr.num != start_num)
alloc.free(path_ret.path);
var file = try Io.Dir.cwd().openFile(io, path_ret.path, .{});