object: fix Modules().init error

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-11-30 14:49:55 -07:00
parent 60df3e7cdc
commit b4e2da1b69

View file

@ -505,7 +505,7 @@ pub fn Modules(module_lists: anytype) type {
}); });
} }
pub fn init(m: *@This(), allocator: std.mem.Allocator) std.mem.Allocator.Error!void { pub fn init(m: *@This(), allocator: std.mem.Allocator) (std.mem.Allocator.Error || std.Thread.SpawnError)!void {
m.* = .{ m.* = .{
.mods = undefined, .mods = undefined,
.graph = undefined, .graph = undefined,