| ... | @@ -30,7 +30,7 @@ test "Dir.Iterator" { | ... | @@ -30,7 +30,7 @@ test "Dir.Iterator" { |
| 30 | while (try iter.next()) |entry| { | 30 | while (try iter.next()) |entry| { |
| 31 | // We cannot just store `entry` as on Windows, we're re-using the name buffer | 31 | // We cannot just store `entry` as on Windows, we're re-using the name buffer |
| 32 | // which means we'll actually share the `name` pointer between entries! | 32 | // which means we'll actually share the `name` pointer between entries! |
| 33 | const name = try mem.dupe(&arena.allocator, u8, entry.name); | 33 | const name = try arena.allocator.dupe(u8, entry.name); |
| 34 | try entries.append(Dir.Entry{ .name = name, .kind = entry.kind }); | 34 | try entries.append(Dir.Entry{ .name = name, .kind = entry.kind }); |
| 35 | } | 35 | } |
| 36 | | 36 | |