From ca10dac88432ed0145b43d47c27a04ad7e4858c9 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 26 Aug 2026 17:28:28 -0700 Subject: [PATCH] Dir: no need for these flags structs to be packed --- Dir.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dir.zig b/Dir.zig index c9ca43f7958969afa22c7af9bd3aa43965bd7154..d822b0222be3d2e29c439d2865ac9e0d4627c6e2 100644 --- a/Dir.zig +++ b/Dir.zig @@ -54,7 +54,7 @@ pub fn openFileC(self: Dir, sub_path: []const u8, flags: OpenFileFlags) !File { return openFile(self, buf[0..sub_path.len :0], flags); } -pub const OpenFileFlags = packed struct { +pub const OpenFileFlags = struct { mode: enum(u8) { read_only, write_only, read_write } = .read_only, lock: enum(u8) { none, shared, exclusive } = .none, }; @@ -72,7 +72,7 @@ pub fn openDirC(self: Dir, sub_path: []const u8, flags: OpenDirFlags) !Dir { return openDir(self, buf[0..sub_path.len :0], flags); } -pub const OpenDirFlags = packed struct { +pub const OpenDirFlags = struct { // }; -- 2.54.0