authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-06-05 15:55:50 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-06-05 15:55:50 -07:00
log6e448cad10c23b4681b132a5ef96ed82adf11873
tree1cf37de1449bc19b26104b654f65dee8d7a53049
parentb9c825d2e3f09d4aa99ee80e4c898cd062c20dfc

remove unneeded `anyerror`


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

src/cmd/fetch.zig+1-1
...@@ -138,7 +138,7 @@ fn print_paths(w: std.fs.File.Writer, list: []u.Module) !void {...@@ -138,7 +138,7 @@ fn print_paths(w: std.fs.File.Writer, list: []u.Module) !void {
138 }138 }
139}139}
140140
141fn print_deps(w: std.fs.File.Writer, dir: []const u8, m: u.Module, tabs: i32, array: bool) anyerror!void {141fn print_deps(w: std.fs.File.Writer, dir: []const u8, m: u.Module, tabs: i32, array: bool) !void {
142 if (m.has_no_zig_deps() and tabs > 0) {142 if (m.has_no_zig_deps() and tabs > 0) {
143 try w.print("null", .{});143 try w.print("null", .{});
144 return;144 return;
src/util/modfile.zig+1-1
...@@ -34,7 +34,7 @@ pub const ModFile = struct {...@@ -34,7 +34,7 @@ pub const ModFile = struct {
34 return from_mapping(alloc, doc.mapping);34 return from_mapping(alloc, doc.mapping);
35 }35 }
3636
37 pub fn from_mapping(alloc: *std.mem.Allocator, mapping: yaml.Mapping) anyerror!Self {37 pub fn from_mapping(alloc: *std.mem.Allocator, mapping: yaml.Mapping) !Self {
38 const id = mapping.get_string("id");38 const id = mapping.get_string("id");
39 const name = mapping.get("name").?.string;39 const name = mapping.get("name").?.string;
40 const main = mapping.get_string("main");40 const main = mapping.get_string("main");