From 621d6ae856c380fb32c4988eec47d9ce841f270d Mon Sep 17 00:00:00 2001 From: Jacob Dennis Date: Mon, 8 Aug 2022 16:36:22 +0100 Subject: [PATCH] Updated to work with zig master branch (#2620) Specifically, std.fs.OpenDirOptions struct no longer has the iterable flag, now it's a standalone function call std.fs.openIterableDir --- examples/build.zig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/build.zig b/examples/build.zig index 5be56eda..3e6d68ad 100644 --- a/examples/build.zig +++ b/examples/build.zig @@ -7,10 +7,7 @@ fn add_module(comptime module: []const u8, b: *std.build.Builder, target: std.zi const mode = b.standardReleaseOptions(); const all = b.step(module, "All " ++ module ++ " examples"); - const dir = try std.fs.cwd().openDir( - module, - .{ .iterate = true }, - ); + const dir = try std.fs.cwd().openIterableDir(module, .{}); var iter = dir.iterate(); while (try iter.next()) |entry| { if (entry.kind != .File) continue;