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-15 11:06:45 -08:00
logb236fce4c7daf168ec7602a49c0ce62cd2f1fdf2
tree65b7dc4e413ef0048a52221c4bf6791f7ee99663
parent1b8d8bd57445b48a086e1ba73f45c186559493f5

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
250250 }
251251 const moddirO = try std.fs.cwd().openDir(modpath, .{});
252252 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) {
254254 error.CantFindMain => null,
255255 else => |ee| return ee,
256256 };