From 30c19986a7ecfe704acf6f7b46ad6de3154b2920 Mon Sep 17 00:00:00 2001 From: Himbeer Date: Sat, 20 Jul 2024 18:39:48 +0200 Subject: mem: Annotate page_allocator with explicit Allocator type This makes it possible to use the allocator in some code locations that would otherwise require local type annotations. --- src/lib/mem.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/mem.zig b/src/lib/mem.zig index da50641..5ec99ab 100644 --- a/src/lib/mem.zig +++ b/src/lib/mem.zig @@ -255,7 +255,7 @@ pub const PageAllocator = struct { } }; -pub const page_allocator = .{ +pub const page_allocator = Allocator{ .ptr = undefined, .vtable = &PageAllocator.vtable, }; -- cgit v1.2.3