From 7e7e5518d81e70ec81d2abbf8a054acf4407de17 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Mon, 4 Dec 2023 15:30:08 +0100 Subject: [PATCH] revert IterableDir see https://github.com/ziglang/zig/pull/18076 --- src/wpt/run.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wpt/run.zig b/src/wpt/run.zig index a7c77077..26c09a19 100644 --- a/src/wpt/run.zig +++ b/src/wpt/run.zig @@ -139,7 +139,7 @@ fn evalJS(env: jsruntime.Env, alloc: std.mem.Allocator, script: []const u8, name // browse the path to find the tests list. pub fn find(allocator: std.mem.Allocator, comptime path: []const u8, list: *std.ArrayList([]const u8)) !void { - var dir = try std.fs.cwd().openIterableDir(path, .{ .no_follow = true }); + var dir = try std.fs.cwd().openDir(path, .{ .iterate = true, .no_follow = true }); defer dir.close(); var walker = try dir.walk(allocator);