main: use direct allocator
This commit is contained in:
parent
a33db9f060
commit
1d86abff5b
1 changed files with 1 additions and 4 deletions
|
@ -8,10 +8,7 @@ test "scritcher" {
|
|||
}
|
||||
|
||||
pub fn main() !void {
|
||||
var arena = std.heap.ArenaAllocator.init(std.heap.c_allocator);
|
||||
defer arena.deinit();
|
||||
|
||||
const allocator = &arena.allocator;
|
||||
const allocator = std.heap.direct_allocator;
|
||||
|
||||
var lang = langs.Lang.init(allocator);
|
||||
defer lang.deinit();
|
||||
|
|
Loading…
Reference in a new issue