authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-12-02 02:17:40 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-12-02 02:17:40 -08:00
log0f2b7d5a7adb79c776ea58fd0e661c444991d298
treedd1d7bbf92ebbfe898a2d905b05987f9589239ba
parentfaaff1a93bde6a1bbfaa2e45cb6531879ed6550b

Module.from- use better param name


1 files changed, 2 insertions(+), 2 deletions(-)

src/util/module.zig+2-2
......@@ -26,12 +26,12 @@ pub const Module = struct {
2626 clean_path: string,
2727 dep: ?zigmod.Dep,
2828
29 pub fn from(alloc: *std.mem.Allocator, dep: zigmod.Dep, dir: string, options: *common.CollectOptions) !Module {
29 pub fn from(alloc: *std.mem.Allocator, dep: zigmod.Dep, modpath: string, options: *common.CollectOptions) !Module {
3030 var moddeps = std.ArrayList(Module).init(alloc);
3131 defer moddeps.deinit();
3232
3333 for (dep.deps) |*d| {
34 if (try common.get_module_from_dep(d, dir, options)) |founddep| {
34 if (try common.get_module_from_dep(d, modpath, options)) |founddep| {
3535 try moddeps.append(founddep);
3636 }
3737 }