From 1d577abefe563db807a84d32b91e0fa6982efa36 Mon Sep 17 00:00:00 2001 From: LN Liberda Date: Fri, 22 May 2026 20:42:30 +0200 Subject: [PATCH] Zig 0.16: init ArrayList with .empty --- src/exclude.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exclude.zig b/src/exclude.zig index 0c2d4d5..f3b094f 100644 --- a/src/exclude.zig +++ b/src/exclude.zig @@ -150,7 +150,7 @@ fn PatternList(comptime withsub: bool) type { const e = self.literals.getOrPut(main.allocator, pat) catch unreachable; if (!e.found_existing) { e.key_ptr.* = pat; - e.value_ptr.* = if (withsub) .{} else {}; + e.value_ptr.* = if (withsub) .empty else {}; } if (!withsub and !pat.isdir and e.key_ptr.*.isdir) e.key_ptr.* = pat; if (withsub) {