authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-07-24 02:42:35 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-07-24 02:42:35 -07:00
log32f142f7670e498f96edc802882dbe695ecdd6b9
tree595211a10dfb7b9523278c68845586b37848e7a7
parent0c3f8b1a010b345ad090eed5ba0e39b1ca7769e6

util/deptype- enable zig fmt on the methods


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

src/util/dep_type.zig+3
...@@ -31,6 +31,7 @@ pub const DepType = enum {...@@ -31,6 +31,7 @@ pub const DepType = enum {
31 // ipfs, // https://www.ipfs.com/31 // ipfs, // https://www.ipfs.com/
32 // hypercore, // https://hypercore-protocol.org/32 // hypercore, // https://hypercore-protocol.org/
3333
34 // zig fmt: on
34 pub fn pull(self: DepType, rpath: []const u8, dpath: []const u8) !void {35 pub fn pull(self: DepType, rpath: []const u8, dpath: []const u8) !void {
35 switch (self) {36 switch (self) {
36 .local => {},37 .local => {},
...@@ -55,6 +56,7 @@ pub const DepType = enum {...@@ -55,6 +56,7 @@ pub const DepType = enum {
55 }56 }
56 }57 }
5758
59 // zig fmt: on
58 pub fn update(self: DepType, dpath: []const u8, rpath: []const u8) !void {60 pub fn update(self: DepType, dpath: []const u8, rpath: []const u8) !void {
59 _ = rpath;61 _ = rpath;
6062
...@@ -74,6 +76,7 @@ pub const DepType = enum {...@@ -74,6 +76,7 @@ pub const DepType = enum {
74 }76 }
75 }77 }
7678
79 // zig fmt: on
77 pub fn exact_version(self: DepType, mpath: []const u8) ![]const u8 {80 pub fn exact_version(self: DepType, mpath: []const u8) ![]const u8 {
78 var mdir = try std.fs.cwd().openDir(mpath, .{});81 var mdir = try std.fs.cwd().openDir(mpath, .{});
79 defer mdir.close();82 defer mdir.close();