From 212e3c3bc8ef23d3d2dbecea4ce6a7e2f5b60d33 Mon Sep 17 00:00:00 2001 From: utox39 Date: Mon, 25 Aug 2025 01:47:48 +0200 Subject: [PATCH] refactor(config): use new managed array list --- src/config.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.zig b/src/config.zig index b3ad474..b690cc2 100644 --- a/src/config.zig +++ b/src/config.zig @@ -29,8 +29,8 @@ pub const ModuleType = enum { custom, }; -pub fn getModulesTypes(allocator: std.mem.Allocator, config: ?std.json.Parsed(Config)) !std.ArrayList(ModuleType) { - var modules_list = std.ArrayList(ModuleType).init(allocator); +pub fn getModulesTypes(allocator: std.mem.Allocator, config: ?std.json.Parsed(Config)) !std.array_list.Managed(ModuleType) { + var modules_list = std.array_list.Managed(ModuleType).init(allocator); if (config) |c| { for (c.value.modules) |module| {