diff --git a/src/cmd/fetch.zig b/src/cmd/fetch.zig index 44e9b0a9af814648b21a56937c48fd363675d1d5..b23c472bc9dac1ff192e720d3f433c593407bff5 100644 --- a/src/cmd/fetch.zig +++ b/src/cmd/fetch.zig @@ -138,7 +138,7 @@ fn print_paths(w: std.fs.File.Writer, list: []u.Module) !void { } } -fn print_deps(w: std.fs.File.Writer, dir: []const u8, m: u.Module, tabs: i32, array: bool) anyerror!void { +fn print_deps(w: std.fs.File.Writer, dir: []const u8, m: u.Module, tabs: i32, array: bool) !void { if (m.has_no_zig_deps() and tabs > 0) { try w.print("null", .{}); return; diff --git a/src/util/modfile.zig b/src/util/modfile.zig index 592476f3db558f9e5ca27860fdb6a9becb8e2ab8..2188b4076e2140377c3ae262960fc7adb1936fca 100644 --- a/src/util/modfile.zig +++ b/src/util/modfile.zig @@ -34,7 +34,7 @@ pub const ModFile = struct { return from_mapping(alloc, doc.mapping); } - pub fn from_mapping(alloc: *std.mem.Allocator, mapping: yaml.Mapping) anyerror!Self { + pub fn from_mapping(alloc: *std.mem.Allocator, mapping: yaml.Mapping) !Self { const id = mapping.get_string("id"); const name = mapping.get("name").?.string; const main = mapping.get_string("main");