main: use direct allocator

This commit is contained in:
Luna 2019-08-14 16:11:09 -03:00
parent a33db9f060
commit 1d86abff5b

View file

@ -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();