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 {
138138 }
139139}
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 {
142142 if (m.has_no_zig_deps() and tabs > 0) {
143143 try w.print("null", .{});
144144 return;
src/util/modfile.zig+1-1
......@@ -34,7 +34,7 @@ pub const ModFile = struct {
3434 return from_mapping(alloc, doc.mapping);
3535 }
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 {
3838 const id = mapping.get_string("id");
3939 const name = mapping.get("name").?.string;
4040 const main = mapping.get_string("main");