authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-11-15 11:06:45 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-11-16 09:13:22 -08:00
logd80b093ef90b1f14c6cf8a2f0023649a4b391097
tree2b1dac7d907ce806a745cceb3cebee6d94f0da47
parentbf2ce1f635a26837708a1ea199fd8c3f7059e7bb

common: clarify type here


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

src/common.zig+1-1
...@@ -250,7 +250,7 @@ pub fn get_module_from_dep(d: *zigmod.Dep, cachepath: string, options: *CollectO...@@ -250,7 +250,7 @@ pub fn get_module_from_dep(d: *zigmod.Dep, cachepath: string, options: *CollectO
250 }250 }
251 const moddirO = try std.fs.cwd().openDir(modpath, .{});251 const moddirO = try std.fs.cwd().openDir(modpath, .{});
252 const tryname = try u.detect_pkgname(options.alloc, d.name, modpath);252 const tryname = try u.detect_pkgname(options.alloc, d.name, modpath);
253 const trymain = u.detct_mainfile(options.alloc, d.main, moddirO, tryname) catch |err| switch (err) {253 const trymain: ?string = u.detct_mainfile(options.alloc, d.main, moddirO, tryname) catch |err| switch (err) {
254 error.CantFindMain => null,254 error.CantFindMain => null,
255 else => |ee| return ee,255 else => |ee| return ee,
256 };256 };