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 {...@@ -26,12 +26,12 @@ pub const Module = struct {
26 clean_path: string,26 clean_path: string,
27 dep: ?zigmod.Dep,27 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 {
30 var moddeps = std.ArrayList(Module).init(alloc);30 var moddeps = std.ArrayList(Module).init(alloc);
31 defer moddeps.deinit();31 defer moddeps.deinit();
3232
33 for (dep.deps) |*d| {33 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| {
35 try moddeps.append(founddep);35 try moddeps.append(founddep);
36 }36 }
37 }37 }