mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-11-03 21:49:42 -09:00
Zig 0.16: init ArrayList with .empty
This commit is contained in:
parent
dfffa681c1
commit
1d577abefe
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue